1 #ifndef INCLUDE_DATAPOINT_UTILITY_H_ 2 #define INCLUDE_DATAPOINT_UTILITY_H_ 16 #include "datapoint.h" 21 using Datapoints = std::vector<Datapoint*>;
22 using Readings = std::vector<Reading*>;
25 Datapoints *findDictElement (Datapoints* dict,
const std::string& key);
26 DatapointValue *findValueElement (Datapoints* dict,
const std::string& key);
27 Datapoint *findDatapointElement (Datapoints* dict,
const std::string& key);
28 Datapoints *findDictOrListElement (Datapoints *dict,
const std::string& key, DatapointValue::dataTagType type);
29 Datapoints *findListElement (Datapoints *dict,
const std::string& key);
30 std::string findStringElement (Datapoints* dict,
const std::string& key);
33 void deleteValue(Datapoints *dps,
const std::string& key);
36 Datapoint *createStringElement (Datapoints *dps,
const std::string& key,
const std::string& valueDefault);
37 Datapoint *createIntegerElement (Datapoints *dps,
const std::string& key,
long valueDefault);
38 Datapoint *createDictElement (Datapoints *dps,
const std::string& key);
39 Datapoint *createListElement (Datapoints *dps,
const std::string& key);
40 Datapoint *createDictOrListElement (Datapoints* dps,
const std::string& key,
bool dict);
43 #endif // INCLUDE_DATAPOINT_UTILITY_H_ Name and value pair used to represent a data value within an asset reading.
Definition: datapoint.h:310
Definition: datapoint_utility.h:19
Class to hold an actual reading value.
Definition: datapoint.h:30