2005/5/9

     
 

class PipedReader

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

acdk::io::PipedReader Class Reference

#include <PipedReader.h>

Inheritance diagram for acdk::io::PipedReader:

acdk::io::AbstractStorageReader acdk::io::AbstractReader acdk::io::Storage acdk::lang::Object acdk::io::Reader acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

A create a Reader end of a pipe construct.

API: ACDK<br/>

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


Public Member Functions

 PipedReader ()
 PipedReader (IN(RPipedWriter) in)
virtual void connect (IN(RPipedWriter) in)
virtual void close ()
 implements from Reader

virtual bool ready ()
 implements from Reader

virtual int read ()
 implements from Reader

virtual int read (IN(RbyteArray) buffer, int offset=0, int len=-1)
 implements from Reader

virtual int read (byte *buffer, int offset, int len)
 implements from Reader

virtual void reset ()
 implements from Reader


Protected Member Functions

void pipewrite (byte c)
void pipewrite (IN(RbyteArray) buffer, int offset, int len=-1)
void pipewrite (const byte *buffer, int offset, int len)
virtual RString getDeviceName ()
 implements from Reader

virtual bool isWriteable ()
 implements from Storage

virtual bool isReadable ()
 implements from Storage


Private Attributes

RPipedWriter _in
bool _connected
bool _closed
RbyteArray _buffer
int _inPos
int _outPos

Static Private Attributes

int PIPE_SIZE

Friends

class PipedWriter


Constructor & Destructor Documentation

acdk::io::PipedReader::PipedReader  ) 
 

acdk::io::PipedReader::PipedReader IN(RPipedWriter in  ) 
 


Member Function Documentation

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

implements from Reader

Reimplemented from acdk::io::Reader.

virtual void acdk::io::PipedReader::connect IN(RPipedWriter in  )  [virtual]
 

virtual RString acdk::io::PipedReader::getDeviceName  )  [protected, virtual]
 

implements from Reader

Implements acdk::io::AbstractStorageReader.

virtual bool acdk::io::PipedReader::isReadable  )  [protected, virtual]
 

implements from Storage

Implements acdk::io::AbstractStorageReader.

virtual bool acdk::io::PipedReader::isWriteable  )  [protected, virtual]
 

implements from Storage

Implements acdk::io::AbstractStorageReader.

void acdk::io::PipedReader::pipewrite const byte buffer,
int  offset,
int  len
[protected]
 

void acdk::io::PipedReader::pipewrite IN(RbyteArray buffer,
int  offset,
int  len = -1
[protected]
 

void acdk::io::PipedReader::pipewrite byte  c  )  [protected]
 

virtual int acdk::io::PipedReader::read byte buffer,
int  offset,
int  len
[inline, virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

virtual int acdk::io::PipedReader::read IN(RbyteArray buffer,
int  offset = 0,
int  len = -1
[virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

virtual int acdk::io::PipedReader::read  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::AbstractReader.

virtual bool acdk::io::PipedReader::ready  )  [virtual]
 

implements from Reader

Reimplemented from acdk::io::Reader.

virtual void acdk::io::PipedReader::reset  )  [virtual]
 

implements from Reader

Implements acdk::io::AbstractReader.


Friends And Related Function Documentation

friend class PipedWriter [friend]
 


Member Data Documentation

RbyteArray acdk::io::PipedReader::_buffer [private]
 

bool acdk::io::PipedReader::_closed [private]
 

bool acdk::io::PipedReader::_connected [private]
 

RPipedWriter acdk::io::PipedReader::_in [private]
 

int acdk::io::PipedReader::_inPos [private]
 

int acdk::io::PipedReader::_outPos [private]
 

int acdk::io::PipedReader::PIPE_SIZE [static, private]