CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups 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

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

Definition at line 112 of file JsonMonitorable.h.

112 {}

Member Function Documentation

void jsoncollector::DoubleJ::operator= ( double  sth)
inline
void jsoncollector::DoubleJ::resetValue ( )
inlineoverridevirtual
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  }
void jsoncollector::DoubleJ::update ( double  sth)
inline
double& jsoncollector::DoubleJ::value ( )
inline
double jsoncollector::DoubleJ::value ( ) const
inline

Member Data Documentation

double jsoncollector::DoubleJ::theVar_
private

Definition at line 139 of file JsonMonitorable.h.

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