1 #ifndef OMFLINKEDDATA_H
2 #define OMFLINKEDDATA_H
17 #include <omfbuffer.h>
18 #include <linkedlookup.h>
41 OMFLinkedData( std::unordered_map<std::string, LALookup> *linkedAssetState,
42 const OMF_ENDPOINT PIServerEndpoint = ENDPOINT_CR) :
43 m_linkedAssetState(linkedAssetState),
44 m_endpoint(PIServerEndpoint),
45 m_doubleFormat(
"float64"),
46 m_integerFormat(
"int64")
49 const std::string& DefaultAFLocation = std::string(),
51 void buildLookup(
const std::vector<Reading *>& reading);
52 void setSendFullStructure(
const bool sendFullStructure) {m_sendFullStructure = sendFullStructure;};
54 std::size_t
clearLALookup(
const std::vector<Reading *>& reading, std::size_t startIndex, std::size_t numReadings, std::string &delimiter);
55 void setDelimiter(
const std::string &delimiter) {m_delimiter = delimiter;};
56 void setFormats(
const std::string& doubleFormat,
const std::string& integerFormat)
58 m_doubleFormat = doubleFormat;
59 m_integerFormat = integerFormat;
61 void setStaticData(std::vector<std::pair<std::string, std::string>> *staticData)
63 m_staticData = staticData;
67 std::string getBaseType(
Datapoint *dp,
const std::string& format);
68 void sendContainer(std::string& link,
Datapoint *dp,
OMFHints * hints,
const std::string& baseType);
73 case DatapointValue::DatapointTag::T_FLOAT:
74 case DatapointValue::DatapointTag::T_INTEGER:
75 case DatapointValue::DatapointTag::T_STRING:
83 bool m_sendFullStructure;
84 std::string m_delimiter;
92 std::unordered_map<std::string, LALookup> *m_linkedAssetState;
97 OMF_ENDPOINT m_endpoint;
102 std::vector<std::pair<std::string, std::string>> *m_staticData;
108 std::string m_containers;
109 std::set<std::string> m_containerNames;
110 std::string m_doubleFormat;
111 std::string m_integerFormat;