2005/5/9

     
 

class OutputDebugStringWriter

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

acdk::io::OutputDebugStringWriter Class Reference

#include <OutputDebugStringWriter.h>

Inheritance diagram for acdk::io::OutputDebugStringWriter:

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

On MS Windows application this Writer uses OutputDebugStringA() to write to debugger console.

On other platform this just uses printf().

API: ACDK

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


Public Member Functions

 OutputDebugStringWriter ()
virtual void write (const byte *cstr, int offset, int len)
void write (byte c)
 default implementation: byte cbuf[2]; cbuf[1] = 0; cbuf[0] = c; return write((const byte*)cbuf, 0, 1);

virtual void flush ()
virtual void close ()
virtual acdk::lang::RString getDeviceName ()
virtual bool isWriteable ()
virtual bool isReadable ()


Constructor & Destructor Documentation

acdk::io::OutputDebugStringWriter::OutputDebugStringWriter  )  [inline]
 


Member Function Documentation

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

Implements acdk::io::AbstractWriter.

virtual void acdk::io::OutputDebugStringWriter::flush  )  [inline, virtual]
 

Implements acdk::io::AbstractWriter.

virtual acdk::lang::RString acdk::io::OutputDebugStringWriter::getDeviceName  )  [inline, virtual]
 

Returns:
the name of the device. Normally the filename

Implements acdk::io::AbstractStorageWriter.

virtual bool acdk::io::OutputDebugStringWriter::isReadable  )  [inline, virtual]
 

Returns:
true if Storage is readable

Implements acdk::io::AbstractStorageWriter.

virtual bool acdk::io::OutputDebugStringWriter::isWriteable  )  [inline, virtual]
 

Returns:
true if Storage is writable

Implements acdk::io::AbstractStorageWriter.

void acdk::io::OutputDebugStringWriter::write byte  c  )  [inline, 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::OutputDebugStringWriter::write const byte cstr,
int  offset,
int  len
[inline, virtual]
 

Reimplemented from acdk::io::AbstractWriter.