SST  15.1.0
StructuralSimulationToolkit
SST::Core::Serialization::ObjectMapComparison Class Referenceabstract

Base class for interacting with data from ObjectMap. More...

#include <objectMap.h>

Inheritance diagram for SST::Core::Serialization::ObjectMapComparison:
SST::Core::Serialization::ObjectMapComparison_impl< T > SST::Core::Serialization::ObjectMapComparison_var< T1, T2 >

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_ = ""
 
ObjectMapobj_ = nullptr
 

Detailed Description

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.


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