itom 2.2.0
|
Base class for all meta-information classes. More...
#include <paramMeta.h>
Public Types | |
enum | MetaRtti { rttiUnknown = 0, rttiCharMeta = 1, rttiIntMeta = 2, rttiDoubleMeta = 3, rttiStringMeta = 4, rttiHWMeta = 5, rttiDObjMeta = 6, rttiIntArrayMeta = 7, rttiDoubleArrayMeta = 8, rttiCharArrayMeta = 9, rttiIntervalMeta = 10, rttiDoubleIntervalMeta = 11, rttiRangeMeta = 12, rttiRectMeta = 13 } |
Runtime type information. More... | |
Public Member Functions | |
ParamMeta () | |
default constructor with an unknown meta information type | |
ParamMeta (MetaRtti type) | |
constructor used by derived classes to indicate their real type | |
virtual | ~ParamMeta () |
destructor | |
MetaRtti | getType () const |
returns runtime type information value | |
Protected Attributes | |
MetaRtti | m_type |
Base class for all meta-information classes.
Parameters of type ito::Param can have a pointer to this class. Consider this base class to be abstract, such that it is only allowed to pass the right implementation (derived from this class) that fits to the type of the parameter. The runtime type information value m_type indicates the real type of this pointer, such that a direct cast can be executed.
Runtime type information.
MetaRtti is used to cast param meta objects, without having to enable runtime type information of the compiler.