gloox
1.0.1
|
#include <compressionzlib.h>
Public Member Functions | |
CompressionZlib (CompressionDataHandler *cdh) | |
virtual | ~CompressionZlib () |
virtual bool | init () |
virtual void | compress (const std::string &data) |
virtual void | decompress (const std::string &data) |
virtual void | cleanup () |
Public Member Functions inherited from CompressionBase | |
CompressionBase (CompressionDataHandler *cdh) | |
virtual | ~CompressionBase () |
Additional Inherited Members | |
Protected Attributes inherited from CompressionBase | |
CompressionDataHandler * | m_handler |
bool | m_valid |
An implementation of CompressionBase using zlib.
Definition at line 36 of file compressionzlib.h.
CompressionZlib | ( | CompressionDataHandler * | cdh | ) |
Contructor.
cdh | The CompressionDataHandler to receive de/compressed data. |
Definition at line 22 of file compressionzlib.cpp.
|
virtual |
Virtual Destructor.
Definition at line 52 of file compressionzlib.cpp.
|
virtual |
Performs internal cleanup.
Implements CompressionBase.
Definition at line 122 of file compressionzlib.cpp.
|
virtual |
Compresses the given chunk of data.
data | The original (uncompressed) data. |
Implements CompressionBase.
Definition at line 57 of file compressionzlib.cpp.
|
virtual |
Decompresses the given chunk of data.
data | The compressed data. |
Implements CompressionBase.
Definition at line 91 of file compressionzlib.cpp.
|
virtual |
This function initializes the compression module. it is mandatory to be called.
Implements CompressionBase.
Definition at line 27 of file compressionzlib.cpp.