Fledge
An open source edge computing platform for industrial users
OMFData Class Reference

The OMFData class. More...

#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 ()
 

Detailed Description

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

Constructor & Destructor Documentation

◆ OMFData()

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.

Parameters
readingReading for which the OMF message must be generated
measurementIdName/Reference of the object of the Data Archive at which the data must be assigned
PIServerEndpointEnd point for which the OMF message must be prepared among: PIWebAPI, ADH, OCS, EDS...
AFHierarchyPrefixUnused at the current stage
hintsOMF hints for the specific reading for changing the behaviour of the operation

This loop creates: "dataName": {"type": "dataType"},


The documentation for this class was generated from the following files: