itom 1.3.0
|
Meta-information for Param of type String. More...
#include <param.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 | |
~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) |
StringMeta & | operator+= (const char *val) |
Private Attributes | |
tType | m_stringType |
int | m_len |
char ** | m_val |
Meta-information for Param of type String.
ito::StringMeta::StringMeta | ( | tType | type | ) | [inline] |
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 | ||
) | [inline] |
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 |
bool ito::StringMeta::addItem | ( | const char * | val | ) | [inline] |
val | adds another element to the string list. |
tType ito::StringMeta::getStringType | ( | ) | const [inline] |
returns the type how strings in list should be considered.