Main Page | Namespace List | Class Hierarchy | Class List | File List | Class Members | File Members

StringTokenizer Class Reference

#include <StringTokenizer.h>

List of all members.

Public Member Functions

 StringTokenizer (const std::string &_str, const std::string &_delim)
 ~StringTokenizer ()
int countTokens ()
bool hasMoreTokens ()
std::string nextToken ()
int nextIntToken ()
double nextFloatToken ()
std::string nextToken (const std::string &delim)
std::string remainingString ()
std::string filterNextToken (const std::string &filterStr)

Private Attributes

std::string token_str
std::string delim


Constructor & Destructor Documentation

StringTokenizer::StringTokenizer const std::string &  _str,
const std::string &  _delim
 

Definition at line 3 of file StringTokenizer.cpp.

References delim, and token_str.

StringTokenizer::~StringTokenizer  )  [inline]
 

Definition at line 34 of file StringTokenizer.h.


Member Function Documentation

int StringTokenizer::countTokens  ) 
 

Definition at line 52 of file StringTokenizer.cpp.

References delim, and token_str.

std::string StringTokenizer::filterNextToken const std::string &  filterStr  ) 
 

Definition at line 155 of file StringTokenizer.cpp.

References nextToken().

bool StringTokenizer::hasMoreTokens  ) 
 

Definition at line 84 of file StringTokenizer.cpp.

References token_str.

double StringTokenizer::nextFloatToken  ) 
 

Definition at line 120 of file StringTokenizer.cpp.

References nextToken().

int StringTokenizer::nextIntToken  ) 
 

Definition at line 114 of file StringTokenizer.cpp.

References nextToken().

Referenced by CSVParser::operator>>().

std::string StringTokenizer::nextToken const std::string &  delim  ) 
 

Definition at line 126 of file StringTokenizer.cpp.

References token_str.

std::string StringTokenizer::nextToken  ) 
 

Definition at line 90 of file StringTokenizer.cpp.

References delim, and token_str.

Referenced by filterNextToken(), nextFloatToken(), and nextIntToken().

std::string StringTokenizer::remainingString  ) 
 

Definition at line 149 of file StringTokenizer.cpp.

References token_str.


Member Data Documentation

std::string StringTokenizer::delim [private]
 

Definition at line 48 of file StringTokenizer.h.

Referenced by countTokens(), nextToken(), and StringTokenizer().

std::string StringTokenizer::token_str [private]
 

Definition at line 47 of file StringTokenizer.h.

Referenced by countTokens(), hasMoreTokens(), nextToken(), remainingString(), and StringTokenizer().


The documentation for this class was generated from the following files:
Note: Generated nightly - reload for latest version
Generated on Thu Dec 22 23:12:40 2005 for terreneuve by doxygen 1.3.6