#include <compress.hpp>
Inheritance diagram for ICompression:

Definition at line 63 of file compress.hpp.
Public Types | |
| typedef unsigned int | TFlags |
| Compression flags. | |
| enum | ELevel { eLevel_Default = -1, eLevel_NoCompression = 0, eLevel_Lowest = 1, eLevel_VeryLow = 2, eLevel_Low = 3, eLevel_MediumLow = 4, eLevel_Medium = 5, eLevel_MediumHigh = 6, eLevel_High = 7, eLevel_VeryHigh = 8, eLevel_Best = 9 } |
| Compression level. More... | |
Public Member Functions | |
| virtual | ~ICompression (void) |
| Destructor. | |
| virtual CVersionInfo | GetVersion (void) const =0 |
| Return name and version of the compression library. | |
| virtual void | SetLevel (ELevel level)=0 |
| virtual ELevel | GetLevel (void) const =0 |
| virtual ELevel | GetDefaultLevel (void) const =0 |
| Return the default compression level for current compression algorithm. | |
| virtual int | GetErrorCode (void) const =0 |
| virtual string | GetErrorDescription (void) const =0 |
| virtual TFlags | GetFlags (void) const =0 |
| virtual void | SetFlags (TFlags flags)=0 |
| virtual bool | CompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)=0 |
| virtual bool | DecompressBuffer (const void *src_buf, size_t src_len, void *dst_buf, size_t dst_size, size_t *dst_len)=0 |
| virtual bool | CompressFile (const string &src_file, const string &dst_file, size_t buf_size=kCompressionDefaultBufSize)=0 |
| virtual bool | DecompressFile (const string &src_file, const string &dst_file, size_t buf_size=kCompressionDefaultBufSize)=0 |
|
|
Compression flags. The flag selection depends from compression algorithm implementation. Definition at line 89 of file compress.hpp. |
|
|
Compression level. It is in range [0..9]. Increase of level might mean better compression and usualy greater time of compression. Usualy 1 gives best speed, 9 gives best compression, 0 gives no compression at all. eDefault value requests a compromise between speed and compression (according to developers of the corresponding compression algorithm).
Definition at line 73 of file compress.hpp. |
|
|
Destructor.
Definition at line 93 of file compress.hpp. |
|
||||||||||||||||||||||||
|
Implemented in CBZip2Compression, and CZipCompression. |
|
||||||||||||||||
|
Implemented in CBZip2Compression, and CZipCompression. |
|
||||||||||||||||||||||||
|
Implemented in CBZip2Compression, and CZipCompression. |
|
||||||||||||||||
|
Implemented in CBZip2Compression, and CZipCompression. |
|
|
Return the default compression level for current compression algorithm.
Implemented in CBZip2Compression, and CZipCompression. Referenced by CCompression::GetLevel(). |
|
|
Implemented in CCompression. |
|
|
Implemented in CCompression. |
|
|
Implemented in CCompression. |
|
|
Implemented in CBZip2Compression, and CCompression. |
|
|
Return name and version of the compression library.
Implemented in CBZip2Compression, CCompression, and CZipCompression. |
|
|
|
|
|
|
1.4.6
Modified on Mon Dec 07 16:24:25 2009 by modify_doxy.py rev. 173732