artefaktur
software engineer &        architecture

 
 
 
 

class LineNumberCharReaderImpl

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

acdk::io::LineNumberCharReaderImpl Class Reference

#include <LineNumberCharReader.h>

Inheritance diagram for acdk::io::LineNumberCharReaderImpl:

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

Detailed Description

Standard filter implementation LineNumberCharReader.

Author:
Roger Rene Kommer (mailto:kommer@artefaktur.com)
Version:
Revision
1.12
Date:
Date
2005/04/09 19:26:45


Public Member Functions

 LineNumberCharReaderImpl (IN(RCharReader) in, IN(acdk::lang::Object) iolock=Nil)
void close ()
 closes the reader

virtual int getCharPos ()
virtual void setCharPos (int ch)
virtual int getLineNumber ()
virtual void setLineNumber (int ln)
int getColumnNumber ()
void setColumnNumber (int cn)
virtual int readChar ()
 read one char.

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

virtual RString readLine ()

Protected Attributes

int _charPos
int _markedCharPos
int _lineNumber
int _markedLineNumber
int _xPos
int _markedXPos
int _extra_char

Constructor & Destructor Documentation

acdk::io::LineNumberCharReaderImpl::LineNumberCharReaderImpl IN(RCharReader in,
IN(acdk::lang::Object iolock = Nil
 


Member Function Documentation

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

closes the reader

Reimplemented from acdk::io::AbstractCharFilterReader.

virtual int acdk::io::LineNumberCharReaderImpl::getCharPos  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.

int acdk::io::LineNumberCharReaderImpl::getColumnNumber  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.

virtual int acdk::io::LineNumberCharReaderImpl::getLineNumber  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.

virtual int acdk::io::LineNumberCharReaderImpl::readChar  )  [virtual]
 

read one char.

Returns:
-1 if end of file

Reimplemented from acdk::io::AbstractCharFilterReader.

virtual RString acdk::io::LineNumberCharReaderImpl::readLine  )  [virtual]
 

Implements acdk::io::LineNumberCharReader.

virtual RString acdk::io::LineNumberCharReaderImpl::readString  )  [virtual]
 

read until EOF and return as string

Reimplemented from acdk::io::AbstractCharFilterReader.

virtual void acdk::io::LineNumberCharReaderImpl::setCharPos int  ch  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.

void acdk::io::LineNumberCharReaderImpl::setColumnNumber int  cn  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.

virtual void acdk::io::LineNumberCharReaderImpl::setLineNumber int  ln  )  [inline, virtual]
 

Implements acdk::io::LineNumberCharReader.


Member Data Documentation

int acdk::io::LineNumberCharReaderImpl::_charPos [protected]
 

int acdk::io::LineNumberCharReaderImpl::_extra_char [protected]
 

int acdk::io::LineNumberCharReaderImpl::_lineNumber [protected]
 

int acdk::io::LineNumberCharReaderImpl::_markedCharPos [protected]
 

int acdk::io::LineNumberCharReaderImpl::_markedLineNumber [protected]
 

int acdk::io::LineNumberCharReaderImpl::_markedXPos [protected]
 

int acdk::io::LineNumberCharReaderImpl::_xPos [protected]
 

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