CMS 3D CMS Logo

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
List of all members | Public Member Functions | Private Attributes
jsoncollector::DoubleJ Class Reference

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::DoubleJ:
jsoncollector::JsonMonitorable

Public Member Functions

 DoubleJ ()
 
 DoubleJ (double val)
 
void operator= (double sth)
 
void resetValue () override
 
std::string toString () const override
 
void update (double sth)
 
double & value ()
 
double value () const
 
 ~DoubleJ () override
 
- Public Member Functions inherited from jsoncollector::JsonMonitorable
virtual std::string const & getName () const
 
bool getNotSame () const
 
unsigned int getUpdates ()
 
 JsonMonitorable ()
 
virtual void setName (std::string name)
 
virtual ~JsonMonitorable ()
 

Private Attributes

double theVar_
 

Additional Inherited Members

- Protected Attributes inherited from jsoncollector::JsonMonitorable
std::string name_
 
bool notSame_
 
unsigned int updates_
 

Detailed Description

Definition at line 107 of file JsonMonitorable.h.

Constructor & Destructor Documentation

◆ DoubleJ() [1/2]

jsoncollector::DoubleJ::DoubleJ ( )
inline

◆ DoubleJ() [2/2]

jsoncollector::DoubleJ::DoubleJ ( double  val)
inline

◆ ~DoubleJ()

jsoncollector::DoubleJ::~DoubleJ ( )
inlineoverride

Definition at line 112 of file JsonMonitorable.h.

112 {}

Member Function Documentation

◆ operator=()

void jsoncollector::DoubleJ::operator= ( double  sth)
inline

◆ resetValue()

void jsoncollector::DoubleJ::resetValue ( )
inlineoverridevirtual

◆ toString()

std::string jsoncollector::DoubleJ::toString ( ) const
inlineoverridevirtual

Implements jsoncollector::JsonMonitorable.

Definition at line 114 of file JsonMonitorable.h.

References contentValuesCheck::ss, and theVar_.

114  {
115  std::stringstream ss;
116  ss << theVar_;
117  return ss.str();
118  }

◆ update()

void jsoncollector::DoubleJ::update ( double  sth)
inline

◆ value() [1/2]

double& jsoncollector::DoubleJ::value ( )
inline

◆ value() [2/2]

double jsoncollector::DoubleJ::value ( ) const
inline

Member Data Documentation

◆ theVar_

double jsoncollector::DoubleJ::theVar_
private

Definition at line 139 of file JsonMonitorable.h.

Referenced by operator=(), resetValue(), toString(), update(), and value().