Torque2D Reference
Loading...
Searching...
No Matches
Compressor Class Referenceabstract

#include <compressor.h>

Public Member Functions

 Compressor (S32 method, const char *name)
const char * getName ()
S32 getMethod ()
virtual StreamcreateReadStream (const CentralDir *cdir, Stream *zipStream)=0
virtual StreamcreateWriteStream (const CentralDir *cdir, Stream *zipStream)=0

Static Public Member Functions

static CompressorfindCompressor (const char *name)
static CompressorfindCompressor (S32 method)

Protected Attributes

const char * mName
 The name of the compression method.
S32 mMethod
 The compression method as in the Zip header.

Constructor & Destructor Documentation

◆ Compressor()

Compressor ( S32 method,
const char * name )

Member Function Documentation

◆ createReadStream()

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

◆ createWriteStream()

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

◆ findCompressor() [1/2]

Compressor * findCompressor ( const char * name)
static

◆ findCompressor() [2/2]

Compressor * findCompressor ( S32 method)
static

◆ getMethod()

S32 getMethod ( )
inline

◆ getName()

const char * getName ( )
inline

Member Data Documentation

◆ mMethod

S32 mMethod
protected

The compression method as in the Zip header.

◆ mName

const char* mName
protected

The name of the compression method.


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