itom 1.3.0
ito::StringMeta Class Reference

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

#include <param.h>

Inheritance diagram for ito::StringMeta:
ito::ParamMeta

List of all members.

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)
StringMetaoperator+= (const char *val)

Private Attributes

tType m_stringType
int m_len
char ** m_val

Detailed Description

Meta-information for Param of type String.

See also:
ito::Param

Member Enumeration Documentation

Enumerator:
String 

string elements should be considered as strings (exact match)

Wildcard 

string elements should be considered as wildcard-expressions (e.g. *.doc)

RegExp 

string elements should be considered as regular expressions (e.g. ^(.*)[abc]{1,5}$)


Constructor & Destructor Documentation

ito::StringMeta::StringMeta ( tType  type) [inline]

constructor

Returns a meta information class for string-types.

Parameters:
typeindicates how the string elements should be considered
See also:
tType
ito::StringMeta::StringMeta ( tType  type,
const char *  val 
) [inline]

constructor

Returns a meta information class for string-types.

Parameters:
typeindicates how the string elements should be considered
valadds a first string to the element list
See also:
tType

Member Function Documentation

bool ito::StringMeta::addItem ( const char *  val) [inline]
Parameters:
valadds another element to the string list.
tType ito::StringMeta::getStringType ( ) const [inline]

returns the type how strings in list should be considered.

See also:
tType

The documentation for this class was generated from the following file:
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends