StateVariable.h Source File
Back to the index.
Go to the documentation of this file. 1 #ifndef STATEVARIABLE_H
2 #define STATEVARIABLE_H
268 bool SetValue(
const string& expression);
294 string EvaluateExpression(
const string& expression,
295 bool &success)
const;
302 string GetTypeString()
const;
309 string ValueToString()
const;
332 #endif // STATEVARIABLE_H
bool CopyValueFrom(const StateVariable &otherVariable)
Copy the value from another variable into this variable.
StateVariables make up the persistent state of Component objects.
uint64_t ToInteger() const
Returns the variable as an unsignedinteger value.
virtual void CopyValueFrom(CustomStateVariableHandler *other)=0
map< string, StateVariable > StateVariableMap
enum Type GetType() const
Gets the type of the variable.
double ToDouble() const
Returns the variable as a double value.
A context used during serialization of objects.
static void RunUnitTests(int &nSucceeded, int &nFailures)
bool SetValue(const string &expression)
Set the variable's value, using a string expression.
void SerializeValue(ostream &ss) const
Serializes the variable value into a string.
string ToString() const
Returns the variable as a readable string.
CustomStateVariableHandler * phandler
virtual ~CustomStateVariableHandler()
CustomStateVariableHandler()
const string & GetName() const
Gets the name of the variable.
Base class for unit testable classes.
void Serialize(ostream &ss, SerializationContext &context) const
Serializes the variable into a string.
Type
An enumeration of the possible types of a StateVariable.
virtual bool Deserialize(const string &value)=0
virtual void Serialize(ostream &ss) const =0
Generated on Tue Aug 25 2020 19:25:06 for GXemul by
1.8.18