itom 2.0.0
|
Meta-information for Param of type CharArrayMeta. More...
#include <paramMeta.h>
Public Member Functions | |
CharArrayMeta (char minVal, char maxVal, char stepSize=1) | |
CharArrayMeta (char minVal, char maxVal, char stepSize, size_t numMin, size_t numMax, size_t numStepSize=1) | |
size_t | getNumMin () const |
returns minimum number of values | |
size_t | getNumMax () const |
returns maximum number of values | |
size_t | getNumStepSize () const |
returns step size of number of values | |
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 | |
Private Attributes | |
size_t | m_numMin |
size_t | m_numMax |
size_t | m_numStep |
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 contraints 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.
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 contraints 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.
void ito::CharArrayMeta::setNumMax | ( | size_t | val | ) |
sets the maximum number of values
val | is the new maximum value, if this is smaller than the current minimum value, the minimum value is changed to val, too |
void ito::CharArrayMeta::setNumMin | ( | size_t | val | ) |
sets the minimum number of values
val | is the new minimum value, if this is bigger than the current maximum value, the maximum value is changed to val, too |
void ito::CharArrayMeta::setNumStepSize | ( | size_t | val | ) |
sets the step size of the number of values
val | is the new step size, hence only discrete values [minVal, minVal+stepSize, minVal+2*stepSize...,maxVal] are allowed |