![]() |
![]() |
#include <Iguana/Utilities/classlib/zip/InteractiveDecompressor.h>
This class can be used to run a on non-blocking input and/or output or when the should be ran interactively on limited amounts of data at a time.
This class processes both input and output in chunks, the upper limits of the chunk sizes for both input and output are given as constructor arguments. At most one full chunk of input or output data is processed at a time even if the streams could handle more.
A can consume arbitrary amounts of input before producing any output, and even a small amount of input can produce large amounts of output. This class guarantees the partitioning of the input and output to at most the chunk sizes mentioned above, while at the same time remaining responsive to the maximum bandwiths of the input and output streams -- within the limits of the 's abilities.
This class must be inherted from to implement the input and output notification scheme. On call to waitForInput() doInput() should be registered to handle the input becoming readable. Similarly on call to waitForOutput() doOutput() should be registered to handle the output becoming writable.
Definition at line 46 of file InteractiveDecompressor.h.
anonymous enum |
virtual lat::InteractiveDecompressor::~InteractiveDecompressor | ( | void | ) | [virtual] |
lat::InteractiveDecompressor::InteractiveDecompressor | ( | Decompressor * | decompressor, | |
InputStream * | input = 0 , |
|||
OutputStream * | output = 0 , |
|||
IOSize | inBufSize = DEFAULT_BUF_SIZE , |
|||
IOSize | outBufSize = DEFAULT_BUF_SIZE | |||
) | [protected] |
lat::InteractiveDecompressor::InteractiveDecompressor | ( | const InteractiveDecompressor & | ) | [private] |
InteractiveDecompressor& lat::InteractiveDecompressor::operator= | ( | const InteractiveDecompressor & | ) | [private] |
virtual void lat::InteractiveDecompressor::setInputStream | ( | InputStream * | input | ) | [protected, virtual] |
virtual void lat::InteractiveDecompressor::setOutputStream | ( | OutputStream * | output | ) | [protected, virtual] |
IOSize lat::InteractiveDecompressor::m_bottom [protected] |
Definition at line 86 of file InteractiveDecompressor.h.
Decompressor* lat::InteractiveDecompressor::m_decompressor [protected] |
Definition at line 75 of file InteractiveDecompressor.h.
unsigned char* lat::InteractiveDecompressor::m_inBuf [protected] |
Definition at line 78 of file InteractiveDecompressor.h.
IOSize lat::InteractiveDecompressor::m_inBufSize [protected] |
Definition at line 79 of file InteractiveDecompressor.h.
InputStream* lat::InteractiveDecompressor::m_input [protected] |
Definition at line 77 of file InteractiveDecompressor.h.
bool lat::InteractiveDecompressor::m_inputting [protected] |
Definition at line 80 of file InteractiveDecompressor.h.
IOSize lat::InteractiveDecompressor::m_out [protected] |
Definition at line 85 of file InteractiveDecompressor.h.
unsigned char* lat::InteractiveDecompressor::m_outBuf [protected] |
Definition at line 83 of file InteractiveDecompressor.h.
IOSize lat::InteractiveDecompressor::m_outBufSize [protected] |
Definition at line 84 of file InteractiveDecompressor.h.
OutputStream* lat::InteractiveDecompressor::m_output [protected] |
Definition at line 82 of file InteractiveDecompressor.h.
bool lat::InteractiveDecompressor::m_outputting [protected] |
Definition at line 87 of file InteractiveDecompressor.h.