2005/5/9

     
 

class ConsoleWriter

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

acdk::io::ConsoleWriter Class Reference

#include <ConsoleWriter.h>

Inheritance diagram for acdk::io::ConsoleWriter:

acdk::io::AbstractStorageWriter acdk::io::AbstractWriter acdk::io::Storage acdk::lang::Object acdk::io::Writer acdk::lang::ObjectBase acdk::lang::dmi::StdDispatch List of all members.

Detailed Description

Writes bytes to a console.

API: ACDK

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


Public Member Functions

 ConsoleWriter (ConsoleOutChannel fd=InvalidConsoleOutChannel, IN(acdk::lang::Object) iolock=Nil)
virtual ~ConsoleWriter ()
virtual void flush ()
virtual void close ()
virtual void write (const byte *cstr, int offset, int len)
virtual void write (byte c)
 default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

virtual void write (IN(RbyteArray) ch, int offset, int len)
 default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

virtual RString getDeviceName ()
virtual bool isWriteable ()
virtual bool isReadable ()

Public Attributes

FILE * _fptr


Constructor & Destructor Documentation

acdk::io::ConsoleWriter::ConsoleWriter ConsoleOutChannel  fd = InvalidConsoleOutChannel,
IN(acdk::lang::Object iolock = Nil
 

virtual acdk::io::ConsoleWriter::~ConsoleWriter  )  [virtual]
 


Member Function Documentation

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

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ConsoleWriter::flush  )  [virtual]
 

Implements acdk::io::AbstractWriter.

virtual RString acdk::io::ConsoleWriter::getDeviceName  )  [virtual]
 

Returns:
the name of the device. Normally the filename

Implements acdk::io::AbstractStorageWriter.

virtual bool acdk::io::ConsoleWriter::isReadable  )  [virtual]
 

Returns:
true if Storage is readable

Implements acdk::io::AbstractStorageWriter.

virtual bool acdk::io::ConsoleWriter::isWriteable  )  [virtual]
 

Returns:
true if Storage is writable

Implements acdk::io::AbstractStorageWriter.

virtual void acdk::io::ConsoleWriter::write IN(RbyteArray ch,
int  offset,
int  len
[virtual]
 

default implementation: return write(ch->data(), offset, len == -1 ? ch->length() - offset : len);

Reimplemented from acdk::io::AbstractWriter.

virtual void acdk::io::ConsoleWriter::write byte  c  )  [virtual]
 

default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

Implements acdk::io::AbstractWriter.

virtual void acdk::io::ConsoleWriter::write const byte cstr,
int  offset,
int  len
[virtual]
 

Reimplemented from acdk::io::AbstractWriter.


Member Data Documentation

FILE* acdk::io::ConsoleWriter::_fptr