![]() |
Fledge
An open source edge computing platform for industrial users
|
#include <omf.h>
Public Member Functions | |
OMFData (OMFBuffer &payload, const Reading &reading, string measurementId, bool needDelim, const OMF_ENDPOINT PIServerEndpoint=ENDPOINT_CR, const std::string &DefaultAFLocation=std::string(), OMFHints *hints=NULL) | |
OMFData constructor, generates the OMF message containing the data. More... | |
bool | hasData () |
The OMFData class.
A reading is formatted with OMF specifications using the original type creation scheme implemented by the OMF plugin
There is no good reason to retain this class any more, it is here mostly to reduce the scope of the change when introducing the OMFBuffer
OMFData::OMFData | ( | OMFBuffer & | payload, |
const Reading & | reading, | ||
string | measurementId, | ||
bool | needDelim, | ||
const OMF_ENDPOINT | PIServerEndpoint = ENDPOINT_CR , |
||
const std::string & | DefaultAFLocation = std::string() , |
||
OMFHints * | hints = NULL |
||
) |
OMFData constructor, generates the OMF message containing the data.
reading | Reading for which the OMF message must be generated |
measurementId | Name/Reference of the object of the Data Archive at which the data must be assigned |
PIServerEndpoint | End point for which the OMF message must be prepared among: PIWebAPI, ADH, OCS, EDS... |
AFHierarchyPrefix | Unused at the current stage |
hints | OMF hints for the specific reading for changing the behaviour of the operation |
This loop creates: "dataName": {"type": "dataType"},