casa  $Rev:20696$
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Private Member Functions | Private Attributes
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>

List of all members.

Public Member Functions

 StringTokenizer (const string &s, const string &delim=" \t\n\r\f", bool returnDelims=false) throw (InvalidArgumentException)
virtual ~StringTokenizer ()
bool hasMoreTokens ()
string nextToken () throw (OutOfBoundsException)
string nextToken (const string delim) throw (OutOfBoundsException)
int countTokens ()
 StringTokenizer (const string &s, const string &delim=" \t\n\r\f", bool returnDelims=false) throw (InvalidArgumentException)
virtual ~StringTokenizer ()
bool hasMoreTokens ()
string nextToken () throw (OutOfBoundsException)
string nextToken (const 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)
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
string * ostr
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 43 of file StringTokenizer.h.


Constructor & Destructor Documentation

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

Member Function Documentation

int asdm::StringTokenizer::indexOfDelimiters ( char  c) [private]
int asdm::StringTokenizer::indexOfDelimiters ( char  c) [private]
string asdm::StringTokenizer::nextToken ( const string  delim) throw (OutOfBoundsException)
string asdm::StringTokenizer::nextToken ( const string  delim) throw (OutOfBoundsException)
int asdm::StringTokenizer::scanToken ( int  startPos) [private]
int asdm::StringTokenizer::scanToken ( int  startPos) [private]
int asdm::StringTokenizer::skipDelimiters ( int  startPos) throw (InvalidArgumentException) [private]
int asdm::StringTokenizer::skipDelimiters ( int  startPos) throw (InvalidArgumentException) [private]

Member Data Documentation

Definition at line 60 of file StringTokenizer.h.

const char * asdm::StringTokenizer::delimiter [private]

Definition at line 66 of file StringTokenizer.h.

Definition at line 69 of file StringTokenizer.h.

Definition at line 71 of file StringTokenizer.h.

Definition at line 62 of file StringTokenizer.h.

Definition at line 61 of file StringTokenizer.h.

Definition at line 67 of file StringTokenizer.h.

string * asdm::StringTokenizer::ostr [private]

Definition at line 64 of file StringTokenizer.h.

Definition at line 68 of file StringTokenizer.h.

char * asdm::StringTokenizer::str [private]

Definition at line 63 of file StringTokenizer.h.

Definition at line 65 of file StringTokenizer.h.


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