8 #ifndef JSON_MONITORABLE_H 9 #define JSON_MONITORABLE_H 115 std::stringstream
ss;
182 HistoJ(
int expectedUpdates = 1,
unsigned int maxUpdates = 0) {
193 std::stringstream
ss;
203 std::stringstream
ss;
206 for (
unsigned int i = 0;
i <
histo_.size();
i++) {
216 for (
unsigned int i = 0;
i <
histo_.size();
i++) {
void setMaxUpdates(unsigned int maxUpdates)
std::string toString() const override
void operator=(std::string sth)
std::string toString() const override
void resetValue() override
StringJ(StringJ const &sJ)
std::string toCSV() const
std::string toString() const override
virtual ~JsonMonitorable()
unsigned int getExpectedSize() const
void update(std::string const &newStr)
unsigned int getUpdates()
void operator=(std::vector< T > const &sth)
std::vector< T > & value()
std::string toString() const override
void concatenate(std::string const &added)
virtual void setName(std::string name)
unsigned int expectedSize_
unsigned int getMaxUpdates() const
std::vector< T > const & value() const
array value (ordered list)
void resetValue() override
void resetValue() override
JsonMonPtr(JsonMonitorable *ptr)
void operator=(double sth)
virtual void resetValue()=0
virtual std::string const & getName() const
virtual Json::Value toJsonValue() const
virtual std::string toString() const =0
Value & append(const Value &value)
Append value to array at the end.
HistoJ(int expectedUpdates=1, unsigned int maxUpdates=0)
std::string const & value() const
void resetValue() override
unsigned int getSize() const
JsonMonitorable * operator->()
JSON (JavaScript Object Notation).
void operator=(JsonMonitorable *ptr)