8 #ifndef JSON_MONITORABLE_H
9 #define JSON_MONITORABLE_H
19 namespace jsoncollector {
115 std::stringstream
ss;
181 HistoJ(
int expectedUpdates = 1,
unsigned int maxUpdates = 0) {
192 std::stringstream
ss;
195 if (
i != histo_.size() - 1)
202 std::stringstream
ss;
205 for (
unsigned int i = 0;
i <
histo_.size();
i++) {
207 if (
i < histo_.size() - 1)
215 for (
unsigned int i = 0;
i <
histo_.size();
i++) {
void setMaxUpdates(unsigned int maxUpdates)
std::string toString() const override
std::string toCSV() const
void operator=(std::string sth)
std::string toString() const override
void resetValue() override
std::string const & value() const
std::string toString() const override
virtual ~JsonMonitorable()
Value & append(const Value &value)
Append value to array at the end.
void update(std::string const &newStr)
unsigned int getExpectedSize() const
unsigned int getUpdates()
void operator=(std::vector< T > const &sth)
virtual Json::Value toJsonValue() const
std::vector< T > & value()
std::string toString() const override
void concatenate(std::string const &added)
virtual void setName(std::string name)
unsigned int expectedSize_
virtual std::string const & getName() const
unsigned int getSize() const
void resetValue() override
void resetValue() override
std::vector< T > const & value() const
JsonMonPtr(JsonMonitorable *ptr)
void operator=(double sth)
virtual void resetValue()=0
virtual std::string toString() const =0
HistoJ(int expectedUpdates=1, unsigned int maxUpdates=0)
void resetValue() override
JsonMonitorable * operator->()
unsigned int getMaxUpdates() const
array value (ordered list)
void operator=(JsonMonitorable *ptr)