#include <DataPointDefinition.h>
Public Member Functions | |
DataPointDefinition () | |
DataPointDefinition (const std::vector< LegendItem > &legend) | |
virtual void | deserialize (Json::Value &root) |
std::vector< LegendItem > | getLegend () const |
LegendItem | getLegendFor (unsigned int index) const |
bool | isPopulated () const |
virtual void | serialize (Json::Value &root) const |
virtual | ~DataPointDefinition () |
Public Member Functions inherited from jsoncollector::JsonSerializable | |
virtual | ~JsonSerializable () |
Static Public Attributes | |
static const std::string | LEGEND = "legend" |
static const std::string | OPERATION = "operation" |
static const std::string | PARAM_NAME = "name" |
Private Attributes | |
std::vector< LegendItem > | legend_ |
Definition at line 17 of file DataPointDefinition.h.
DataPointDefinition::DataPointDefinition | ( | ) |
Definition at line 18 of file DataPointDefinition.cc.
DataPointDefinition::DataPointDefinition | ( | const std::vector< LegendItem > & | legend | ) |
Definition at line 22 of file DataPointDefinition.cc.
|
virtual |
Definition at line 26 of file DataPointDefinition.cc.
|
virtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 38 of file DataPointDefinition.cc.
References Json::Value::asString(), Json::Value::get(), i, Json::Value::isArray(), LEGEND, legend_, OPERATION, PARAM_NAME, Json::Value::size(), and findQualityFiles::size.
|
inline |
Definition at line 40 of file DataPointDefinition.h.
References legend_.
Referenced by jsoncollector::DataPointMonitor::DataPointMonitor(), jsoncollector::FastMonitor::FastMonitor(), isPopulated(), jsoncollector::ObjectMerger::merge(), and serialize().
LegendItem DataPointDefinition::getLegendFor | ( | unsigned int | index | ) | const |
Returns a LegendItem object at the specified index
Definition at line 50 of file DataPointDefinition.cc.
References getHLTprescales::index, and legend_.
Referenced by jsoncollector::ObjectMerger::csvToJson(), jsoncollector::ObjectMerger::merge(), and serialize().
bool DataPointDefinition::isPopulated | ( | ) | const |
Returns true if the legend_ has elements
Definition at line 54 of file DataPointDefinition.cc.
References getLegend(), and findQualityFiles::size.
Referenced by jsoncollector::DataPointMonitor::DataPointMonitor(), and jsoncollector::FastMonitor::FastMonitor().
|
virtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 29 of file DataPointDefinition.cc.
References Json::Value::append(), getLegend(), getLegendFor(), jsoncollector::LegendItem::getName(), jsoncollector::LegendItem::getOperation(), i, LEGEND, OPERATION, and PARAM_NAME.
|
static |
Definition at line 45 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 50 of file DataPointDefinition.h.
Referenced by deserialize(), getLegend(), and getLegendFor().
|
static |
Definition at line 47 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
static |
Definition at line 46 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().