#include <DataPointDefinition.h>
Public Member Functions | |
void | addLegendItem (std::string const &name, std::string const &type, std::string const &operation) |
DataPointDefinition () | |
virtual void | deserialize (Json::Value &root) |
std::string & | getDefFilePath () |
std::vector< std::string > const & | getNames () |
OperationType | getOperationFor (unsigned int index) |
std::vector< std::string > const & | getOperations () |
bool | isPopulated () const |
virtual void | serialize (Json::Value &root) const |
void | setDefaultGroup (std::string const &group) |
virtual | ~DataPointDefinition () |
Public Member Functions inherited from jsoncollector::JsonSerializable | |
virtual | ~JsonSerializable () |
Static Public Member Functions | |
static bool | getDataPointDefinitionFor (std::string &defFilePath, DataPointDefinition *dpd, const std::string *defaultGroup=nullptr) |
Static Public Attributes | |
static const std::string | ADLER32 = "adler32" |
static const std::string | AVG = "avg" |
static const std::string | BINARYOR = "binaryOr" |
static const std::string | CAT = "cat" |
static const std::string | DATA = "data" |
static const std::string | HISTO = "histo" |
static const std::string | LEGEND = "legend" |
static const std::string | MERGE = "merge" |
static const std::string | OPERATION = "operation" |
static const std::string | PARAM_NAME = "name" |
static const std::string | SAME = "same" |
static const std::string | SUM = "sum" |
static const std::string | TYPE = "type" |
Private Attributes | |
std::string | defaultGroup_ |
std::string | defFilePath_ |
std::vector< std::string > | opNames_ |
std::vector< std::string > | typeNames_ |
std::vector< std::string > | varNames_ |
Definition at line 20 of file DataPointDefinition.h.
|
inline |
Definition at line 23 of file DataPointDefinition.h.
|
inlinevirtual |
Definition at line 28 of file DataPointDefinition.h.
void DataPointDefinition::addLegendItem | ( | std::string const & | name, |
std::string const & | type, | ||
std::string const & | operation | ||
) |
Definition at line 91 of file DataPointDefinition.cc.
References opNames_, typeNames_, and varNames_.
Referenced by RawEventFileWriterForBU::RawEventFileWriterForBU().
|
virtual |
JSON deserialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 60 of file DataPointDefinition.cc.
References Json::Value::asString(), defaultGroup_, Json::Value::get(), i, Json::Value::isArray(), OPERATION, opNames_, PARAM_NAME, Json::Value::size(), findQualityFiles::size, TYPE, typeNames_, and varNames_.
|
static |
Loads a DataPointDefinition from a specified reference
Definition at line 33 of file DataPointDefinition.cc.
References jsoncollector::JSONSerializer::deserialize(), LEGEND, jsoncollector::FileIO::readStringFromFile(), setDefaultGroup(), and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by jsoncollector::FastMonitor::addFastPathDefinition(), and jsoncollector::FastMonitor::FastMonitor().
|
inline |
Definition at line 59 of file DataPointDefinition.h.
References defFilePath_.
|
inline |
Returns a LegendItem object ref at the specified index
Definition at line 45 of file DataPointDefinition.h.
References varNames_.
Referenced by jsoncollector::FastMonitor::commit(), evf::EvFDaqDirector::getNFilesFromEoLS(), and FedRawDataInputSource::grabNextJsonFile().
OperationType DataPointDefinition::getOperationFor | ( | unsigned int | index | ) |
Definition at line 80 of file DataPointDefinition.cc.
References AVG, CAT, HISTO, jsoncollector::OPAVG, jsoncollector::OPCAT, jsoncollector::OPHISTO, opNames_, jsoncollector::OPSAME, jsoncollector::OPSUM, jsoncollector::OPUNKNOWN, SAME, and SUM.
Referenced by jsoncollector::FastMonitor::commit().
|
inline |
Definition at line 46 of file DataPointDefinition.h.
References opNames_.
bool DataPointDefinition::isPopulated | ( | ) | const |
Returns true if the legend_ has elements
Definition at line 72 of file DataPointDefinition.cc.
References varNames_.
|
virtual |
JSON serialization procedure for this class
Implements jsoncollector::JsonSerializable.
Definition at line 48 of file DataPointDefinition.cc.
References Json::Value::append(), defaultGroup_, i, OPERATION, opNames_, PARAM_NAME, findQualityFiles::size, TYPE, typeNames_, and varNames_.
|
inline |
Definition at line 53 of file DataPointDefinition.h.
References defaultGroup_, and watchdog::group.
Referenced by getDataPointDefinitionFor(), and RawEventFileWriterForBU::RawEventFileWriterForBU().
|
static |
Definition at line 70 of file DataPointDefinition.h.
Referenced by evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 64 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 69 of file DataPointDefinition.h.
Referenced by evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 67 of file DataPointDefinition.h.
Referenced by getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 74 of file DataPointDefinition.h.
|
private |
Definition at line 84 of file DataPointDefinition.h.
Referenced by deserialize(), serialize(), and setDefaultGroup().
|
private |
Definition at line 83 of file DataPointDefinition.h.
Referenced by getDefFilePath().
|
static |
Definition at line 66 of file DataPointDefinition.h.
Referenced by getOperationFor().
|
static |
Definition at line 73 of file DataPointDefinition.h.
Referenced by getDataPointDefinitionFor().
|
static |
Definition at line 68 of file DataPointDefinition.h.
Referenced by evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 76 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 82 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getOperationFor(), getOperations(), and serialize().
|
static |
Definition at line 75 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
static |
Definition at line 65 of file DataPointDefinition.h.
Referenced by getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 63 of file DataPointDefinition.h.
Referenced by getOperationFor(), and evf::RecoEventOutputModuleForFU< Consumer >::initRun().
|
static |
Definition at line 77 of file DataPointDefinition.h.
Referenced by deserialize(), and serialize().
|
private |
Definition at line 81 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), and serialize().
|
private |
Definition at line 80 of file DataPointDefinition.h.
Referenced by addLegendItem(), deserialize(), getNames(), isPopulated(), and serialize().