 |
Fledge
An open source edge computing platform for industrial users
|
4 #include <rapidjson/document.h>
13 const std::string& getHint()
const {
return m_hint; };
47 OMFTagHint(
const std::string& tag) { m_hint = tag; };
117 OMFUOMHint(
const std::string& name) { m_hint = name; };
165 const std::vector<OMFHint *>&
166 getHints()
const {
return m_hints; };
167 const std::vector<OMFHint *>&
168 getHints(
const std::string&)
const;
169 const unsigned short getChecksum() {
return m_chksum; };
172 rapidjson::Document m_doc;
173 unsigned short m_chksum;
174 std::vector<OMFHint *> m_hints;
175 std::map<std::string, std::vector<OMFHint *> > m_datapointHints;
A Type name hint, tells us how to name the types we use.
Definition: OMFHint.h:54
A AFLocation hint, tells us in which Asset Framework hierarchy the asset should be created.
Definition: OMFHint.h:84
A Source hint, defines the data source for the asset or datapoint.
Definition: OMFHint.h:104
A unit of measurement hint, defines the unit of measurement for a datapoint.
Definition: OMFHint.h:114
static string getHintForChecksum(const string &hint)
Extracts from a complete OMF hint the part on which the checksum should be generated,...
Definition: omfhints.cpp:39
A tag name hint, tells us which Container name to use in PI.
Definition: OMFHint.h:64
A Legacy type hint, tells the OMF plugin to send complex types for this asset.
Definition: OMFHint.h:94
A number hint, defines how number type should be defined, float64 or float32.
Definition: OMFHint.h:22
A minimum hint, defines the minimum value for a property.
Definition: OMFHint.h:125
A maximum hint, defines the maximum value for a property.
Definition: OMFHint.h:136
A integer hint, defines how integer type should be defined, int64, int32 or int16.
Definition: OMFHint.h:33
A interpolation hint, defines the interpolation value for a property.
Definition: OMFHint.h:146
OMFHints(const std::string &hints)
Decodes the OMFhint in JSON format assigning the values to the memory structures: m_chksum,...
Definition: omfhints.cpp:82
A tag name hint, defines which PI Tag to use for a Datapoint.
Definition: OMFHint.h:74
A tag hint, used to define an existing OMF container or tag to use.
Definition: OMFHint.h:44
Virtual base class for an OMF Hint.
Definition: OMFHint.h:9
A set of hints for a reading.
Definition: OMFHint.h:160
~OMFHints()
Destructor for Hints class.
Definition: omfhints.cpp:309