CZipCompressor::COptions Struct Reference

#include <ZipCompressor.h>

Inheritance diagram for CZipCompressor::COptions:

Inheritance graph
[legend]

List of all members.

Public Types

enum  Constants { cDefaultBufferSize = 2 * 65536 }

Public Member Functions

virtual COptionsClone () const =0
virtual int GetType () const =0

Public Attributes

int m_iBufferSize


Detailed Description

The base class for compressors options.

See also:
Compressing Data

CZipArchive::SetCompressionOptions

Definition at line 120 of file ZipCompressor.h.


Member Enumeration Documentation

Helper constants.

Enumerator:
cDefaultBufferSize  The default size of the buffer used in compression and decompression operations.

Definition at line 126 of file ZipCompressor.h.


Member Function Documentation

virtual COptions* CZipCompressor::COptions::Clone (  )  const [pure virtual]

Clones the current options object.

Returns:
The cloned object of the same type as the current object.

Implemented in ZipArchiveLib::CDeflateCompressor::COptions.

virtual int CZipCompressor::COptions::GetType (  )  const [pure virtual]

Returns the type of the compressor to which the current options apply.

Returns:
The type of the compressor. It can be one of the CompressorType values.

Implemented in ZipArchiveLib::CDeflateCompressor::COptions.


Member Data Documentation

The size of the buffer used in compression and decompression operations. By default it is set to cDefaultBufferSize. For the optimal performance of the deflate algorithm it should be set at least to 128kB.

See also:
CZipArchive::SetAdvanced

Definition at line 163 of file ZipCompressor.h.


The documentation for this struct was generated from the following file:

The ZipArchive Library Copyright © 2000 - 2009 Artpol Software - Tadeusz Dracz. Generated at Fri Apr 24 16:46:35 2009.