SST 15.0
Structural Simulation Toolkit
|
Base class for interacting with data from ObjectMap. More...
#include <objectMap.h>
Public Types | |
enum class | Op : std::uint8_t { LT , LTE , GT , GTE , EQ , NEQ , CHANGED , INVALID } |
Public Member Functions | |
ObjectMapComparison (const std::string &name) | |
virtual bool | compare ()=0 |
virtual std::string | getCurrentValue ()=0 |
std::string | getName () |
Static Public Member Functions | |
static Op | getOperationFromString (const std::string &op) |
Protected Attributes | |
std::string | name_ = "" |
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.