gloox
1.0.16
|
#include <compressionbase.h>
Public Member Functions | |
CompressionBase (CompressionDataHandler *cdh) | |
virtual | ~CompressionBase () |
virtual bool | init ()=0 |
virtual void | compress (const std::string &data)=0 |
virtual void | decompress (const std::string &data)=0 |
virtual void | cleanup ()=0 |
Protected Attributes | |
CompressionDataHandler * | m_handler |
bool | m_valid |
This is an abstract base class for stream compression implementations.
You should not need to use this class directly.
Definition at line 34 of file compressionbase.h.
|
inline |
Contructor.
cdh | A CompressionDataHandler-derived object that will be notified about finished de/compression. |
Definition at line 42 of file compressionbase.h.
|
inlinevirtual |
Virtual Destructor.
Definition at line 47 of file compressionbase.h.
|
pure virtual |
|
pure virtual |
Compresses the given chunk of data.
data | The original (uncompressed) data. |
Implemented in CompressionDefault, and CompressionZlib.
|
pure virtual |
Decompresses the given chunk of data.
data | The compressed data. |
Implemented in CompressionDefault, and CompressionZlib.
|
pure virtual |
This function initializes the compression module. it is mandatory to be called.
Implemented in CompressionDefault, and CompressionZlib.
|
protected |
A handler for compressed/uncompressed data.
Definition at line 76 of file compressionbase.h.
|
protected |
Whether the compression module can be used.
Definition at line 79 of file compressionbase.h.