itom 2.0.0
|
Meta-information for Param of type String. More...
#include <paramMeta.h>
Public Types | |
enum | tType { String, Wildcard, RegExp } |
Public Member Functions | |
StringMeta (tType type) | |
constructor | |
StringMeta (tType type, const char *val) | |
constructor | |
StringMeta (const StringMeta &cpy) | |
copy constructor | |
virtual | ~StringMeta () |
destructor | |
tType | getStringType () const |
returns the type how strings in list should be considered. | |
int | getLen () const |
returns the number of string elements in meta information class. | |
const char * | getString (int idx=0) const |
returns string from list at index position or NULL, if index is out of range. | |
bool | addItem (const char *val) |
adds another element to the list of patterns. | |
StringMeta & | operator+= (const char *val) |
add another pattern string to the list of patterns. | |
Private Attributes | |
tType | m_stringType |
int | m_len |
char ** | m_val |
Meta-information for Param of type String.
An object of this class can be used to parametrize a parameter whose type is ito::ParamBase::String. If set, it is possible to restrict the a given string to fit to a given list of strings. This list of strings might be interpreted in an exact way (tType::String), as wildcard expressions (tType::Wildcard) or as regular expressions (tType::RegExp).
ito::StringMeta::StringMeta | ( | tType | type | ) |
constructor
Returns a meta information class for string-types.
type | indicates how the string elements should be considered |
ito::StringMeta::StringMeta | ( | tType | type, |
const char * | val | ||
) |
constructor
Returns a meta information class for string-types.
type | indicates how the string elements should be considered |
val | adds a first string to the element list |
tType ito::StringMeta::getStringType | ( | ) | const [inline] |
returns the type how strings in list should be considered.