![]() |
Fledge
An open source edge computing platform for industrial users
|
Linked Asset Information class. More...
#include <linkedlookup.h>
Public Member Functions | |
bool | assetState (const std::string &tagName) |
bool | linkState (const std::string &tagName) |
bool | containerState (const std::string &tagName) |
bool | afLinkState () |
void | setBaseType (const std::string &baseType) |
Set the base type by passing the string of the base type. | |
OMFBaseType | getBaseType () |
std::string | getBaseTypeString () |
Get a string representation of the base type that was sent. | |
void | assetSent (const std::string &tagName) |
void | linkSent (const std::string &tagName) |
void | afLinkSent () |
void | containerSent (const std::string &tagName, const std::string &baseType) |
The container has been sent with the specific base type. More... | |
void | containerSent (const std::string &tagName, OMFBaseType baseType) |
The container has been sent with the specific base type. More... | |
Linked Asset Information class.
This is the data stored for each asset and asset datapoint pair that is being sent to PI using the linked container mechanism. We use the class so we can combine all the information we need in a single lookup table, this not only saves space but allows to build and retain the table before we start building the payloads. This hopefully will help prevent to much memory fragmentation, which was an issue with the old, separate lookup mechanism we had.
void LALookup::containerSent | ( | const std::string & | tagName, |
const std::string & | baseType | ||
) |
The container has been sent with the specific base type.
tagName | The name of the tag we are using |
baseType | The baseType we resolve to |
void LALookup::containerSent | ( | const std::string & | tagName, |
OMFBaseType | baseType | ||
) |
The container has been sent with the specific base type.
tagName | The name of the tag we are using |
baseType | The baseType we resolve to |