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

A class to hold a set of asset tracking tuples that allows lookup by name. More...

#include <asset_tracking.h>

Public Member Functions

 AssetTrackingTable ()
 Constructor for an asset tracking tuple table.
 
 ~AssetTrackingTable ()
 Destructor for asset tracking tuple table.
 
void add (AssetTrackingTuple *tuple)
 Add a tuple to an asset tracking table. More...
 
void remove (const std::string &name)
 Remove an asset tracking tuple from the table.
 
AssetTrackingTuplefind (const std::string &name)
 Find the named asset tuple and return a pointer to te asset. More...
 

Detailed Description

A class to hold a set of asset tracking tuples that allows lookup by name.

Member Function Documentation

◆ add()

void AssetTrackingTable::add ( AssetTrackingTuple tuple)

Add a tuple to an asset tracking table.

Parameters
tuplePointer to the asset tracking tuple to add

◆ find()

AssetTrackingTuple * AssetTrackingTable::find ( const std::string &  name)

Find the named asset tuple and return a pointer to te asset.

Parameters
nameThe name of the asset to lookup
Returns
AssetTrackingTupple* The matchign tuple or NULL

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