artefaktur
software engineer &        architecture

 
 
 
 

class StringReader

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

acdk::io::StringReader Class Reference

#include <StringReader.h>

Inheritance diagram for acdk::io::StringReader:

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

Detailed Description

Reads character from a given String.


Public Member Functions

 StringReader (IN(RString) str, int readpos=0, IN(acdk::lang::Object) iolock=Nil)
virtual int readChar ()
 read one char.

virtual RString readString ()
 read until EOF and return as string

virtual void close ()
 closes the reader

int getReadPos ()

Protected Attributes

RString _string
int _readPos
bool _eof

Constructor & Destructor Documentation

acdk::io::StringReader::StringReader IN(RString str,
int  readpos = 0,
IN(acdk::lang::Object iolock = Nil
[inline]
 


Member Function Documentation

virtual void acdk::io::StringReader::close  )  [inline, virtual]
 

closes the reader

Implements acdk::io::CharReader.

int acdk::io::StringReader::getReadPos  )  [inline]
 

virtual int acdk::io::StringReader::readChar  )  [inline, virtual]
 

read one char.

Returns:
-1 if end of file

Implements acdk::io::AbstractCharReader.

virtual RString acdk::io::StringReader::readString  )  [inline, virtual]
 

read until EOF and return as string

Reimplemented from acdk::io::AbstractCharReader.


Member Data Documentation

bool acdk::io::StringReader::_eof [protected]
 

int acdk::io::StringReader::_readPos [protected]
 

RString acdk::io::StringReader::_string [protected]
 

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