CMS 3D CMS Logo

List of all members | Public Member Functions | Private Attributes
jsoncollector::IntJ Class Reference

#include <JsonMonitorable.h>

Inheritance diagram for jsoncollector::IntJ:
jsoncollector::JsonMonitorable

Public Member Functions

void add (long sth)
 
 IntJ ()
 
 IntJ (long val)
 
void operator= (long sth)
 
void resetValue () override
 
std::string toString () const override
 
void update (long sth)
 
long & value ()
 
long value () const
 
 ~IntJ () 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

long theVar_
 

Additional Inherited Members

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

Detailed Description

Definition at line 66 of file JsonMonitorable.h.

Constructor & Destructor Documentation

◆ IntJ() [1/2]

jsoncollector::IntJ::IntJ ( )
inline

◆ IntJ() [2/2]

jsoncollector::IntJ::IntJ ( long  val)
inline

◆ ~IntJ()

jsoncollector::IntJ::~IntJ ( )
inlineoverride

Definition at line 71 of file JsonMonitorable.h.

71 {}

Member Function Documentation

◆ add()

void jsoncollector::IntJ::add ( long  sth)
inline

◆ operator=()

void jsoncollector::IntJ::operator= ( long  sth)
inline

◆ resetValue()

void jsoncollector::IntJ::resetValue ( )
inlineoverridevirtual

◆ toString()

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

Implements jsoncollector::JsonMonitorable.

Definition at line 73 of file JsonMonitorable.h.

References contentValuesCheck::ss, and theVar_.

73  {
74  std::stringstream ss;
75  ss << theVar_;
76  return ss.str();
77  }

◆ update()

void jsoncollector::IntJ::update ( long  sth)
inline

◆ value() [1/2]

long& jsoncollector::IntJ::value ( )
inline

◆ value() [2/2]

long jsoncollector::IntJ::value ( ) const
inline

Member Data Documentation

◆ theVar_

long jsoncollector::IntJ::theVar_
private

Definition at line 104 of file JsonMonitorable.h.

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