![]() |
MAK Data Logger API Documentation for DIS
|
DtValue is a template class that provide value access. More...
Inheritance diagram for MAKLogger::DtValue< T >:
Collaboration diagram for MAKLogger::DtValue< T >:Public Member Functions | |
| DtValue (const T &value) | |
| Constructor pass in value. More... | |
| virtual | ~DtValue () |
| Destructor, no opp. More... | |
| virtual DtAnyValue * | clone () const |
| Create a new copy of the DtValue;. More... | |
| operator T () | |
| Easy conversion operator. More... | |
| operator const T () const | |
| Constant conversion operator. More... | |
| virtual int | typeId () const |
| Get the type id. More... | |
| virtual const DtString & | type () const |
| Get the type string. More... | |
| virtual DtString | serialize () const |
| Serialize the value into a string. More... | |
| template<> | |
| DT_DLL_LGR_CMDS int | theTypeId () |
Public Member Functions inherited from MAKLogger::DtAnyValue | |
| DtAnyValue () | |
| Inline function provided to work around solaris compiler issue. More... | |
| virtual | ~DtAnyValue () |
| Inline function provided to work around solaris compiler issue. More... | |
| virtual bool | sameType (const DtAnyValue *const base) const |
| Inline function provided to work around solaris compiler issue. More... | |
Static Public Member Functions | |
| static DtValue< T > * | cast (DtAnyValue *base) |
| Cast to point of this type. If not valid type, returns 0. More... | |
| static const DtValue< T > * | cast (const DtAnyValue *base) |
| Cast to const point of this type. If not valid type, returns 0. More... | |
| static bool | isType (const DtAnyValue *base) |
| Static boolean check if base value pointer is specific type. More... | |
| static DtValue< T > * | deserialize (const DtString &value) |
| Deserialize value into a T type. More... | |
| static int | theTypeId () |
| Static function which defines the type. More... | |
| static const DtString & | theType () |
| Static string which defines the type. More... | |
Public Attributes | |
| T | myValue |
| Storage of value;. More... | |
Static Public Attributes | |
| static DT_DLL_LGRUTIL DtString(* | theSerializeFunction )(const T &) |
| Pointer to serializeFunction. More... | |
| static DT_DLL_LGRUTIL T(* | theDeserializeFunction )(const DtString &) |
| Pointer to deserializeFunction. More... | |
DtValue is a template class that provide value access.
DtValue allows generic storage of values via the DtAnyValue and provides an interface for comparing abstract values to determine if they are a concrete type and converting to that type. Much of the functionality is equivalent to RTTI however doesn't require RTTI to be enabled by the compiler.
| MAKLogger::DtValue< T >::DtValue | ( | const T & | value | ) |
Constructor pass in value.
|
virtual |
Destructor, no opp.
|
static |
Cast to point of this type. If not valid type, returns 0.
|
static |
Cast to const point of this type. If not valid type, returns 0.
|
virtual |
Create a new copy of the DtValue;.
Implements MAKLogger::DtAnyValue.
|
static |
Deserialize value into a T type.
| std::invalid_argument | if the string can't be parsed. |
|
static |
Static boolean check if base value pointer is specific type.
| MAKLogger::DtValue< T >::operator const T | ( | ) | const |
Constant conversion operator.
| MAKLogger::DtValue< T >::operator T | ( | ) |
Easy conversion operator.
|
virtual |
Serialize the value into a string.
Implements MAKLogger::DtAnyValue.
|
static |
Static string which defines the type.
| DT_DLL_LGR_CMDS int MAKLogger::DtValue< DtLgrCommandType >::theTypeId | ( | ) |
|
static |
Static function which defines the type.
|
virtual |
Get the type string.
Implements MAKLogger::DtAnyValue.
|
virtual |
Get the type id.
Implements MAKLogger::DtAnyValue.
| T MAKLogger::DtValue< T >::myValue |
Storage of value;.
|
static |
Pointer to deserializeFunction.
|
static |
Pointer to serializeFunction.