|
SST
15.1.0
StructuralSimulationToolkit
|
Base class for interacting with data from ObjectMap. More...
#include <objectMap.h>
Public Types | |
| enum | Op : std::uint8_t { LT, LTE, GT, GTE, EQ, NEQ, CHANGED, INVALID } |
Public Member Functions | |
| ObjectMapComparison (const std::string &name) | |
| ObjectMapComparison (const std::string &name, ObjectMap *obj) | |
| virtual bool | compare ()=0 |
| virtual std::string | getCurrentValue ()=0 |
| virtual void | print (std::ostream &stream)=0 |
| std::string | getName () |
| virtual void * | getVar ()=0 |
Static Public Member Functions | |
| static Op | getOperationFromString (const std::string &op) |
| static std::string | getStringFromOp (Op op) |
Protected Attributes | |
| std::string | name_ = "" |
| ObjectMap * | obj_ = nullptr |
Base class for interacting with data from ObjectMap.
This includes the ability to keep a history of values and compare the value against specified criteria (i.e., value >= 15, value == 6, etc). Because this class is type agnostic, interactions will be through strings, just as with the ObjectMapClass.
The implementations of the virtual functions needs to be done in templated child clases so that the type of the data is known.