Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

SimpleTokenizer Class Reference

#include <SimpleTokenizer.h>

List of all members.

Public Methods

 SimpleTokenizer (String delim="", String term="\n\0")
 Constructor. Users can specify delimiters and terminator character. More...

virtual ~SimpleTokenizer ()
 Destructor. More...

void setDelimiters (String str)
 Redefine the set of delimiters. More...

void setTerminators (String str)
 Redefine the set of terminators. More...

AIDA_STD::vector< Stringtokenize (String) const
 Split the string according to current delimiters/terminators. More...


Private Methods

 SimpleTokenizer (const SimpleTokenizer &)
SimpleTokenizer & operator= (const SimpleTokenizer &)

Private Attributes

String delimiters
String terminators


Detailed Description

Class to tokenize an STL string. This class allows the user to tokenize (i.e. split in separate tokens) an STL string. The user can specify the set of delimiters as well as the terminator character. The class splits the original string in a vector of tokens.

Definition at line 37 of file SimpleTokenizer.h.


Constructor & Destructor Documentation

SimpleTokenizer String    delim = "",
String    term = "\n\0"
 

Definition at line 19 of file SimpleTokenizer.cpp.

References String.

~SimpleTokenizer   [virtual]
 

Definition at line 16 of file SimpleTokenizer.cpp.

SimpleTokenizer const SimpleTokenizer &    [private]
 

Definition at line 23 of file SimpleTokenizer.cpp.


Member Function Documentation

SimpleTokenizer & operator= const SimpleTokenizer &    [private]
 

Definition at line 27 of file SimpleTokenizer.cpp.

void setDelimiters String    str [inline]
 

Definition at line 50 of file SimpleTokenizer.h.

References delimiters, and String.

void setTerminators String    str [inline]
 

Definition at line 52 of file SimpleTokenizer.h.

References String, and terminators.

AIDA_STD::vector< AIDA_STD::string > tokenize String    const
 

Definition at line 35 of file SimpleTokenizer.cpp.

References delimiters, String, and terminators.

Referenced by GetDefaultValue, GetDefaultValueVector, GetManyDefaultValues, ConstList::parse, and ConstList::parseTerm.


Member Data Documentation

String delimiters [private]
 

Definition at line 56 of file SimpleTokenizer.h.

Referenced by setDelimiters, and tokenize.

String terminators [private]
 

Definition at line 57 of file SimpleTokenizer.h.

Referenced by setTerminators, and tokenize.


The documentation for this class was generated from the following files:
Generated on Tue May 20 14:50:28 2003 for HepUtilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002