itom
|
Meta-information for Param of type DObjPtr. More...
#include <paramMeta.h>
Public Member Functions | |
DObjMeta (int minDim=0, int maxDim=(std::numeric_limits< int >::max)(), ito::ByteArray category=ito::ByteArray()) | |
DObjMeta (const DObjMeta &cpy) | |
copy constructor | |
DObjMeta & | operator= (const DObjMeta &rhs) |
virtual bool | operator== (const ParamMeta &other) const |
returns the number of allowed data types or 0 if no type restriction is given. | |
int | getNumAllowedDataTypes () const |
returns the i-th allowed data type. i must be in range [0, getNumAllowedDataTypes). | |
ito::tDataType | getAllowedDataType (int index) const |
returns true if the given dataType is allowed | |
bool | isDataTypeAllowed (ito::tDataType dataType) const |
add a new data type to the list of allowed data types. | |
void | appendAllowedDataType (ito::tDataType dataType) |
returns minimum allowed dimensions of data object | |
int | getMinDim () const |
returns maximum number of dimensions of data object | |
int | getMaxDim () const |
set the minimum allowed dimensions of data object | |
void | setMinDim (int minDim) |
set the maximum number of dimensions of data object | |
void | setMaxDim (int maxDim) |
Public Member Functions inherited from ito::ParamMeta | |
ParamMeta (ito::ByteArray category=ito::ByteArray()) | |
constructor used by derived classes to indicate their real type | |
ParamMeta (MetaRtti type, ito::ByteArray category=ito::ByteArray()) | |
ParamMeta (const ParamMeta ©) | |
ParamMeta & | operator= (const ParamMeta &rhs) |
destructor | |
virtual | ~ParamMeta () |
returns runtime type information value | |
MetaRtti | getType () const |
returns category name of this parameter (default: empty ByteArray) | |
ito::ByteArray | getCategory () const |
void | setCategory (const ito::ByteArray &category) |
bool | operator!= (const ParamMeta &other) const |
Private Attributes | |
ito::ByteArray | m_allowedTypes |
int | m_minDim |
int | m_maxDim |
Additional Inherited Members | |
Public Types inherited from ito::ParamMeta | |
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 , rttiStringListMeta = 14 } |
Runtime type information. More... | |
enum | tRepresentation { Linear = 0x0001 , Logarithmic = 0x0002 , Boolean = 0x0004 , PureNumber = 0x0008 , HexNumber = 0x0010 , IPV4Address = 0x0020 , MACAddress = 0x0040 , UnknownRepresentation = 0x0080 } |
The representation of number types indicates the type of widget that is suited best to display and change the value. More... | |
Protected Attributes inherited from ito::ParamMeta | |
MetaRtti | m_type |
ito::ByteArray | m_category |
optional category name of this parameter | |
|
explicit |
< constructor. This default constructor has no data type restrictions. use appendAllowedDataType to add one of multiple allowed data types.
ito::DObjMeta::DObjMeta | ( | const DObjMeta & | cpy | ) |
copy constructor
assignment operator
|
virtual |
returns the number of allowed data types or 0 if no type restriction is given.
Reimplemented from ito::ParamMeta.
|
private |
< all allowed data types, every character in this array has to be interpreted as ito::tDataType value. If the size of this array is 0, no type restriction is set.