casa  5.7.0-16
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Member Functions | Private Attributes | List of all members
asdm::StringTokenizer Class Reference

The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util pacakge. More...

#include <StringTokenizer.h>

Public Member Functions

 StringTokenizer (const std::string &s, const std::string &delim=" \t\n\r\f", bool returnDelims=false) throw (InvalidArgumentException)
 
virtual ~StringTokenizer ()
 
bool hasMoreTokens ()
 
std::string nextToken () throw (OutOfBoundsException)
 
std::string nextToken (const std::string delim) throw (OutOfBoundsException)
 
int countTokens ()
 

Private Member Functions

void setMaxDelimChar () throw (InvalidArgumentException)
 
int skipDelimiters (int startPos) throw (InvalidArgumentException)
 
int scanToken (int startPos)
 
int indexOfDelimiters (char c)
 

Private Attributes

int currentPosition
 
int newPosition
 
int maxPosition
 
char * str
 
std::string * ostr
 
std::string strDelimiter
 
const char * delimiter
 
int numDelimiters
 
bool retDelims
 
bool delimsChanged
 
char maxDelimChar
 

Detailed Description

The StringTokenizer class is a translation into C++ of the Java class of the same name in Java's util pacakge.

See the Java class documentation.

Definition at line 41 of file StringTokenizer.h.

Constructor & Destructor Documentation

asdm::StringTokenizer::StringTokenizer ( const std::string &  s,
const std::string &  delim = " \t\n\r\f",
bool  returnDelims = false 
)
throw (InvalidArgumentException
)
virtual asdm::StringTokenizer::~StringTokenizer ( )
virtual

Member Function Documentation

int asdm::StringTokenizer::countTokens ( )
bool asdm::StringTokenizer::hasMoreTokens ( )
int asdm::StringTokenizer::indexOfDelimiters ( char  c)
private
std::string asdm::StringTokenizer::nextToken ( )
throw (OutOfBoundsException
)
std::string asdm::StringTokenizer::nextToken ( const std::string  delim)
throw (OutOfBoundsException
)
int asdm::StringTokenizer::scanToken ( int  startPos)
private
void asdm::StringTokenizer::setMaxDelimChar ( )
throw (InvalidArgumentException
)
private
int asdm::StringTokenizer::skipDelimiters ( int  startPos)
throw (InvalidArgumentException
)
private

Member Data Documentation

int asdm::StringTokenizer::currentPosition
private

Definition at line 58 of file StringTokenizer.h.

const char* asdm::StringTokenizer::delimiter
private

Definition at line 64 of file StringTokenizer.h.

bool asdm::StringTokenizer::delimsChanged
private

Definition at line 67 of file StringTokenizer.h.

char asdm::StringTokenizer::maxDelimChar
private

Definition at line 69 of file StringTokenizer.h.

int asdm::StringTokenizer::maxPosition
private

Definition at line 60 of file StringTokenizer.h.

int asdm::StringTokenizer::newPosition
private

Definition at line 59 of file StringTokenizer.h.

int asdm::StringTokenizer::numDelimiters
private

Definition at line 65 of file StringTokenizer.h.

std::string* asdm::StringTokenizer::ostr
private

Definition at line 62 of file StringTokenizer.h.

bool asdm::StringTokenizer::retDelims
private

Definition at line 66 of file StringTokenizer.h.

char* asdm::StringTokenizer::str
private

Definition at line 61 of file StringTokenizer.h.

std::string asdm::StringTokenizer::strDelimiter
private

Definition at line 63 of file StringTokenizer.h.


The documentation for this class was generated from the following file: