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

A set of hints for a reading. More...

#include <OMFHint.h>

Public Member Functions

 OMFHints (const std::string &hints)
 Decodes the OMFhint in JSON format assigning the values to the memory structures: m_chksum, m_hints and m_datapointHints. More...
 
 ~OMFHints ()
 Destructor for Hints class.
 
const std::vector< OMFHint * > & getHints () const
 
const std::vector< OMFHint * > & getHints (const std::string &) const
 
const unsigned short getChecksum ()
 

Static Public Member Functions

static string getHintForChecksum (const string &hint)
 Extracts from a complete OMF hint the part on which the checksum should be generated, for example, it will remove the section related to the AFLocation hint to avoid the creation of a new type when the value changes. More...
 

Detailed Description

Constructor & Destructor Documentation

◆ OMFHints()

OMFHints::OMFHints ( const std::string &  hints)

Decodes the OMFhint in JSON format assigning the values to the memory structures: m_chksum, m_hints and m_datapointHints.

Parameters
hintOMF hint in JSON format

Member Function Documentation

◆ getHintForChecksum()

string OMFHints::getHintForChecksum ( const string &  hint)
static

Extracts from a complete OMF hint the part on which the checksum should be generated, for example, it will remove the section related to the AFLocation hint to avoid the creation of a new type when the value changes.

Parameters
hintOriginal/complete OMF hint
Returns
OMF hint that should be considered for the calculation of the checksum

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