8 #ifndef JSON_MONITORABLE_H
9 #define JSON_MONITORABLE_H
18 namespace jsoncollector {
124 std::stringstream
ss;
195 HistoJ(
int expectedUpdates = 1 ,
unsigned int maxUpdates = 0 ){
205 std::stringstream
ss;
208 if (
i!=histo_.size()-1) ss<<
",";
214 std::stringstream
ss;
217 for (
unsigned int i = 0;
i <
histo_.size();
i++) {
219 if (
i<histo_.size()-1) ss <<
",";
void setMaxUpdates(unsigned int maxUpdates)
std::string toCSV() const
void operator=(std::string sth)
virtual void resetValue()
virtual std::string & getName()
virtual ~JsonMonitorable()
void update(std::string const &newStr)
unsigned int getUpdates()
virtual std::string toString() const
unsigned int getExpectedSize()
void operator=(std::vector< T > &sth)
std::vector< T > & value()
void concatenate(std::string const &added)
virtual std::string toString() const
virtual void setName(std::string name)
unsigned int expectedSize_
virtual std::string toString() const
JsonMonPtr(JsonMonitorable *ptr)
void operator=(double sth)
virtual void resetValue()=0
virtual void resetValue()
virtual void resetValue()
virtual std::string toString() const =0
virtual std::string toString() const
HistoJ(int expectedUpdates=1, unsigned int maxUpdates=0)
JsonMonitorable * operator->()
volatile std::atomic< bool > shutdown_flag false
virtual void resetValue()
unsigned int getMaxUpdates()
void operator=(JsonMonitorable *ptr)