Torque2D Reference

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes

- Class List
- Class Index
- Class Hierarchy
- Class Members

Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
Compressor Class Referenceabstract
Zip Code » Zip Code Internals

`#include <compressor.h>`

## Public Member Functions
| Compressor (S32 method, const char *name)
const char * | getName ()
S32 | getMethod ()
virtual Stream * | createReadStream (const CentralDir *cdir, Stream *zipStream)=0
virtual Stream * | createWriteStream (const CentralDir *cdir, Stream *zipStream)=0

## Static Public Member Functions
static Compressor * | findCompressor (const char *name)
static Compressor * | findCompressor (S32 method)

## Protected Attributes
const char * | mName
| The name of the compression method. More...
S32 | mMethod
| The compression method as in the Zip header. More...

## Constructor & Destructor Documentation

Compressor | ( | S32 | method,
|  | const char * | name
| ) |  |

## Member Function Documentation

virtual Stream* createReadStream | ( | const CentralDir * | cdir,
|  | Stream * | zipStream
| ) |  |
| pure virtual

virtual Stream* createWriteStream | ( | const CentralDir * | cdir,
|  | Stream * | zipStream
| ) |  |
| pure virtual

Compressor * findCompressor | ( | const char * | name | ) |
| static

Compressor * findCompressor | ( | S32 | method | ) |
| static

S32 getMethod | ( |  | ) |
| inline

const char* getName | ( |  | ) |
| inline

## Member Data Documentation

S32 mMethod
| protected

The compression method as in the Zip header.

const char* mName
| protected

The name of the compression method.

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

- io/zip/compressor.h
- io/zip/compressor.cc