itom  1.0.13
ito::StringMeta Class Reference

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

#include <sharedStructures.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.
size_t getLen () const
 returns the number of string elements in meta information class.
const char * getString (size_t idx=0) const
 returns string from list at index position or NULL, if index is out of range.
void addItem (const char *val)
StringMetaoperator+= (const char *val)

Private Attributes

tType m_stringType
size_t 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

void 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: