gloox  1.0
Public Member Functions | List of all members
CompressionZlib Class Reference

#include <compressionzlib.h>

Inheritance diagram for CompressionZlib:
Inheritance graph
[legend]

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
CompressionDataHandlerm_handler
bool m_valid

Detailed Description

An implementation of CompressionBase using zlib.

Author
Jakob Schroeter js@ca.nosp@m.maya.nosp@m..net
Since
0.9

Definition at line 36 of file compressionzlib.h.

Constructor & Destructor Documentation

Contructor.

Parameters
cdhThe CompressionDataHandler to receive de/compressed data.

Definition at line 22 of file compressionzlib.cpp.

~CompressionZlib ( )
virtual

Virtual Destructor.

Definition at line 52 of file compressionzlib.cpp.

Member Function Documentation

void cleanup ( )
virtual

Performs internal cleanup.

Since
1.0

Implements CompressionBase.

Definition at line 122 of file compressionzlib.cpp.

void compress ( const std::string &  data)
virtual

Compresses the given chunk of data.

Parameters
dataThe original (uncompressed) data.

Implements CompressionBase.

Definition at line 57 of file compressionzlib.cpp.

void decompress ( const std::string &  data)
virtual

Decompresses the given chunk of data.

Parameters
dataThe compressed data.

Implements CompressionBase.

Definition at line 91 of file compressionzlib.cpp.

bool init ( )
virtual

This function initializes the compression module. it is mandatory to be called.

Returns
True if the module was initialized successfully, false otherwise.

Implements CompressionBase.

Definition at line 27 of file compressionzlib.cpp.


The documentation for this class was generated from the following files: