ASCIIEncodingStream Class Reference

Data written to this stream will be encoded similar to base64 and can be retrieved as a string. More...

#include <basestrm.h>

Inheritance diagram for ASCIIEncodingStream:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 ASCIIEncodingStream ()
virtual void writedata (const void *buf, int size)
 writes data to the stream
virtual int readdata (void *buf, int size, bool excpt=true)
 Reads data from the stream.
void put (char c)
void flush ()
ASCString getResult ()

Detailed Description

Data written to this stream will be encoded similar to base64 and can be retrieved as a string.

See also:
ASCIIDecodingStream

Definition at line 557 of file basestrm.h.


Constructor & Destructor Documentation

ASCIIEncodingStream::ASCIIEncodingStream (  ) 

Definition at line 1737 of file basestrm.cpp.


Member Function Documentation

void ASCIIEncodingStream::writedata ( const void *  buf,
int  size 
) [virtual]

writes data to the stream

Parameters:
buf pointer to the buffer
size the number of bytes which are going to be written

Implements tnstream.

Definition at line 1739 of file basestrm.cpp.

References put().

Referenced by testStreamEncoding1().

int ASCIIEncodingStream::readdata ( void *  buf,
int  size,
bool  excpt = true 
) [virtual]

Reads data from the stream.

Parameters:
buf the buffer which the data is written to
size the number of bytes which should be read
excpt If true the operation will throw an exception if the desired number of bytes cannot be read.
Returns:
the number of bytes which were read.

Implements tnstream.

Definition at line 1744 of file basestrm.cpp.

References tnstream::reading, and tnstream::writing.

void ASCIIEncodingStream::put ( char  c  ) 

Definition at line 1748 of file basestrm.cpp.

References asciiCodingTable.

Referenced by writedata().

void ASCIIEncodingStream::flush (  ) 

Definition at line 1766 of file basestrm.cpp.

References asciiCodingTable.

Referenced by getResult().

ASCString ASCIIEncodingStream::getResult (  ) 

Definition at line 1772 of file basestrm.cpp.

References flush().

Referenced by testStreamEncoding1(), and testStreamEncoding2().


The documentation for this class was generated from the following files:
Generated on Mon May 21 01:46:19 2012 for Advanced Strategic Command by  doxygen 1.5.1