itom
Loading...
Searching...
No Matches
ito::CharArrayMeta Class Reference

Meta-information for Param of type CharArrayMeta. More...

#include <paramMeta.h>

Inheritance diagram for ito::CharArrayMeta:
ito::CharMeta ito::ListMeta ito::ParamMeta

Public Member Functions

 CharArrayMeta (char minVal, char maxVal, char stepSize=1, ito::ByteArray category=ito::ByteArray())
 
 CharArrayMeta (char minVal, char maxVal, char stepSize, size_t numMin, size_t numMax, size_t numStepSize=1, ito::ByteArray category=ito::ByteArray())
 
 CharArrayMeta (const CharArrayMeta &cpy)
 copy constructor
 
CharArrayMetaoperator= (const CharArrayMeta &rhs)
 < assignment operator
 
virtual bool operator== (const ParamMeta &other) const
 
- Public Member Functions inherited from ito::CharMeta
 CharMeta (char minVal, char maxVal, char stepSize=1, ito::ByteArray category=ito::ByteArray())
 
 CharMeta (const CharMeta &copy)
 
CharMetaoperator= (const CharMeta &rhs)
 
char getMin () const
 returns maximum value
 
char getMax () const
 returns step size
 
char getStepSize () const
 returns unit
 
ito::ByteArray getUnit () const
 sets unit string of this parameter
 
void setUnit (const ito::ByteArray &unit)
 returns display representation
 
ParamMeta::tRepresentation getRepresentation () const
 sets display representation
 
void setRepresentation (ParamMeta::tRepresentation representation)
 
void setMin (char val)
 sets the minimum value
 
void setMax (char val)
 sets the maximum value
 
void setStepSize (char val)
 sets the step size
 
- 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 &copy)
 
ParamMetaoperator= (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
 
- Public Member Functions inherited from ito::ListMeta
 ListMeta ()
 < default constructor with an arbitrary list size
 
 ListMeta (size_t numMin, size_t numMax, size_t numStepSize=1)
 destructor
 
virtual ~ListMeta ()
 < destructor
 
virtual bool operator== (const ListMeta &other) const
 returns minimum number of values
 
size_t getNumMin () const
 returns maximum number of values
 
size_t getNumMax () const
 returns step size of number of values
 
size_t getNumStepSize () const
 
void setNumMin (size_t val)
 sets the minimum number of values
 
void setNumMax (size_t val)
 sets the maximum number of values
 
void setNumStepSize (size_t val)
 sets the step size of the number of values
 

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...
 
- Static Public Member Functions inherited from ito::CharMeta
static CharMetaall (ito::ByteArray category=ito::ByteArray())
 returns minimum value
 
- Protected Attributes inherited from ito::ParamMeta
MetaRtti m_type
 
ito::ByteArray m_category
 optional category name of this parameter
 

Detailed Description

Meta-information for Param of type CharArrayMeta.

Meta-information for Param of type IntArrayMeta.

An object of this class can be used to parametrize a parameter whose type is ito::ParamBase::CharArray. Since this meta information class is derived from ito::CharMeta, it is possible to restrict each value to the single value constraints of ito::CharMeta. Furthermore, this class allows restricting the minimum and maximum length of the array as well as the optional step size of the array's length.

See also
ito::Param, ito::ParamMeta, ito::CharMeta

An object of this class can be used to parametrize a parameter whose type is ito::ParamBase::IntArray. Since this meta information class is derived from ito::IntMeta, it is possible to restrict each value to the single value constraints of ito::IntMeta. Furthermore, this class allows restricting the minimum and maximum length of the array as well as the optional step size of the array's length.

See also
ito::Param, ito::ParamMeta, ito::IntArray

Constructor & Destructor Documentation

◆ CharArrayMeta()

ito::CharArrayMeta::CharArrayMeta ( const CharArrayMeta & cpy)

copy constructor

assignment operator

Member Function Documentation

◆ operator==()

bool ito::CharArrayMeta::operator== ( const ParamMeta & other) const
virtual

returns a new instance of CharMeta, where the min and max are set to the full range available for char. The caller has to take care of memory.

Reimplemented from ito::CharMeta.


The documentation for this class was generated from the following files: