2005/5/9

     
 

class ConsoleCharReader

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

acdk::io::ConsoleCharReader Class Reference

#include <ConsoleCharReader.h>

Inheritance diagram for acdk::io::ConsoleCharReader:

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

Detailed Description

Reads characters from a console (standard input from the process).

API: ACDK

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


Public Member Functions

 ConsoleCharReader (IN(acdk::lang::Object) iolock=Nil, IN(acdk::locale::RDecoder) decoder=Nil)
virtual int readChar ()
 read one char.

virtual void close ()
 closes the reader

virtual RReader getReader (IN(acdk::locale::REncoder) encoder=Nil)
 returns the underlying reader


Private Attributes

HANDLE _handle
acdk::locale::RDecoder _decoder
RCharReader _in


Constructor & Destructor Documentation

acdk::io::ConsoleCharReader::ConsoleCharReader IN(acdk::lang::Object iolock = Nil,
IN(acdk::locale::RDecoder decoder = Nil
 


Member Function Documentation

virtual void acdk::io::ConsoleCharReader::close  )  [virtual]
 

closes the reader

Implements acdk::io::CharReader.

virtual RReader acdk::io::ConsoleCharReader::getReader IN(acdk::locale::REncoder encoder = Nil  )  [virtual]
 

returns the underlying reader

Parameters:
encoder uses to write characters. If Nil uses the system encoding

Reimplemented from acdk::io::CharReader.

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

read one char.

Returns:
-1 if end of file

Implements acdk::io::AbstractCharReader.


Member Data Documentation

acdk::locale::RDecoder acdk::io::ConsoleCharReader::_decoder [private]
 

HANDLE acdk::io::ConsoleCharReader::_handle [private]
 

RCharReader acdk::io::ConsoleCharReader::_in [private]