artefaktur
software engineer &        architecture

 
 
 
 

class ParsePosition

Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   Namespace Members   Compound Members   Related Pages  

acdk::text::ParsePosition Class Reference

#include <ParsePosition.h>

Inheritance diagram for acdk::text::ParsePosition:

acdk::lang::Object acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

This class is used to keep track of the current position during parsing operations.


Public Member Functions

 ParsePosition ()
 ParsePosition (int index)
 This method inizializes a new instance of ParsePosition to have specified initial index value.

 ~ParsePosition ()
int getIndex ()
 This method returns the current parsing index.

void setIndex (int index)
 This method sets the curent parsing index to the specified value.

int getErrorIndex ()
 This method returns the error index value.

void setErrorIndex (int errorIndex)
 This method sets the error index to the specified value.

bool equals (IN(acdk::lang::Object) obj)
 This method tests the specified object for quality with this object.

RString toString ()
 This method returns a String representation of this object.


Private Attributes

int _index
int _errorIndex

Constructor & Destructor Documentation

acdk::text::ParsePosition::ParsePosition  ) 
 

acdk::text::ParsePosition::ParsePosition int  index  ) 
 

This method inizializes a new instance of ParsePosition to have specified initial index value.

Parameters:
index The initial parsing index.

acdk::text::ParsePosition::~ParsePosition  ) 
 


Member Function Documentation

bool acdk::text::ParsePosition::equals IN(acdk::lang::Object obj  )  [virtual]
 

This method tests the specified object for quality with this object.

The two object will be considered equal if and only if all of the following conditions are met. The specified object is not null. The specified object is an instance of ParsePosition. The specified object has the same index and error index as this object.

Parameters:
obj The to test for quality against this object.
Returns:
true if the specified object is equal to this object, false otherwise.

Reimplemented from acdk::lang::Object.

int acdk::text::ParsePosition::getErrorIndex  )  [inline]
 

This method returns the error index value.

This value defaults to -1 unless explicitly set to another value.

Returns:
The error index.

int acdk::text::ParsePosition::getIndex  )  [inline]
 

This method returns the current parsing index.

void acdk::text::ParsePosition::setErrorIndex int  errorIndex  )  [inline]
 

This method sets the error index to the specified value.

Parameters:
errorIndex The new error index.

void acdk::text::ParsePosition::setIndex int  index  )  [inline]
 

This method sets the curent parsing index to the specified value.

Parameters:
index The new parsing index.

RString acdk::text::ParsePosition::toString  )  [virtual]
 

This method returns a String representation of this object.

Returns:
A String that represents this object.

Reimplemented from acdk::lang::Object.


Member Data Documentation

int acdk::text::ParsePosition::_errorIndex [private]
 

int acdk::text::ParsePosition::_index [private]
 

 
Last modified 2005-05-08 18:33 by SYSTEM By Artefaktur, Ing. Bureau Kommer