StreamDecompressionFilter Class Reference

Deompresses data from a compressed stream (using bzip2 compression). More...

#include <basestrm.h>

Inheritance diagram for StreamDecompressionFilter:

Inheritance graph
[legend]
List of all members.

Public Member Functions

 StreamDecompressionFilter (tnstream *inputstream)
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.

Detailed Description

Deompresses data from a compressed stream (using bzip2 compression).

See also:
StreamCompressionFilter

Definition at line 616 of file basestrm.h.


Constructor & Destructor Documentation

StreamDecompressionFilter::StreamDecompressionFilter ( tnstream inputstream  ) 

Definition at line 1875 of file basestrm.cpp.


Member Function Documentation

void StreamDecompressionFilter::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 1879 of file basestrm.cpp.

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

int StreamDecompressionFilter::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 1884 of file basestrm.cpp.

References libbzip_decompression::readdata().

Referenced by testStreamEncoding2().


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