Modeler Extensions Framework
|
Public Types | |
enum | { CLEMEXT_TYPE_UNKNOWN =0u, CLEMEXT_TYPE_INTEGER =1u, CLEMEXT_TYPE_REAL =2u, CLEMEXT_TYPE_STRING =3u } |
Public Member Functions | |
DataValue () | |
void | clearValue () |
void | setValue (const CLEMEXTInteger &v, bool isNull) |
void | setValue (const CLEMEXTReal &v, bool isNull) |
void | setValue (const char *v, bool isNull) |
Data Fields | |
unsigned | typeCode_ |
union { | |
CLEMEXTInteger integerValue_ | |
CLEMEXTReal realValue_ | |
BufferHelper * stringValue_ | |
} | val_ |
bool | isNull_ |
store an individual value (or pointer to a buffer for string values)
Definition at line 39 of file DataHelper.h.
anonymous enum |
Enumerator | |
---|---|
CLEMEXT_TYPE_UNKNOWN | |
CLEMEXT_TYPE_INTEGER | |
CLEMEXT_TYPE_REAL | |
CLEMEXT_TYPE_STRING |
Definition at line 41 of file DataHelper.h.
|
inline |
construct a blank value with no type
Definition at line 57 of file DataHelper.h.
References DataRecord::DataValue::CLEMEXT_TYPE_UNKNOWN.
|
inline |
clear a value (frees an associated buffer if this value formerly held a string)
Definition at line 65 of file DataHelper.h.
References DataRecord::DataValue::CLEMEXT_TYPE_STRING, DataRecord::DataValue::CLEMEXT_TYPE_UNKNOWN, and DataRecord::DataValue::val_.
|
inline |
set an integer value
v | reference to the integer value |
isNull | true iff this value is considered NULL |
Definition at line 77 of file DataHelper.h.
References DataRecord::DataValue::CLEMEXT_TYPE_INTEGER, DataRecord::DataValue::CLEMEXT_TYPE_STRING, and DataRecord::DataValue::val_.
|
inline |
set a real value
v | reference to the real value |
isNull | true iff this value is considered NULL |
Definition at line 90 of file DataHelper.h.
References DataRecord::DataValue::CLEMEXT_TYPE_REAL, DataRecord::DataValue::CLEMEXT_TYPE_STRING, and DataRecord::DataValue::val_.
|
inline |
set a string value
v | pointer to string value (must be non-NULL if isNull=false) |
isNull | true iff this value is considered NULL |
Definition at line 103 of file DataHelper.h.
References DataRecord::DataValue::CLEMEXT_TYPE_STRING, and DataRecord::DataValue::val_.
CLEMEXTInteger integerValue_ |
Definition at line 49 of file DataHelper.h.
bool isNull_ |
Definition at line 53 of file DataHelper.h.
CLEMEXTReal realValue_ |
Definition at line 50 of file DataHelper.h.
BufferHelper* stringValue_ |
Definition at line 51 of file DataHelper.h.
unsigned typeCode_ |
Definition at line 47 of file DataHelper.h.
union { ... } val_ |
Referenced by DataRecord::DataValue::clearValue(), and DataRecord::DataValue::setValue().