ldas-tools-framecpp 2.9.2
Public Member Functions | Static Public Attributes | Protected Types | Protected Member Functions | Protected Attributes | Static Protected Attributes | List of all members
CompressStreamGZipWithDictionary Class Reference
Inheritance diagram for CompressStreamGZipWithDictionary:
Inheritance graph
[legend]
Collaboration diagram for CompressStreamGZipWithDictionary:
Collaboration graph
[legend]

Public Member Functions

 CompressStreamGZipWithDictionary (const std::string &DictionaryFilename, int Level=DEFAULT_LEVEL)
 
 ~CompressStreamGZipWithDictionary ()
 
void operator() (stream_type &Stream)
 

Static Public Attributes

static const int DEFAULT_LEVEL = 1
 

Protected Types

typedef boost::scoped_array< unsigned char > out_type
 

Protected Member Functions

virtual void compress (const std::string &Buffer)
 
virtual void close_stream ()
 
virtual void open_stream ()
 
virtual void compress_stream (const std::string &Buffer, int Flag)
 

Protected Attributes

std::string dictionary
 
int level
 
boost::scoped_array< unsigned char > out
 
z_stream stream
 
size_t buffer_size_total
 
size_t compressed_size_total
 

Static Protected Attributes

static const size_t CHUNK = ( 64 * 1024 )
 
static const int MAX_DICTIONARY_SIZE = ( 32 * 1024 )
 

Member Typedef Documentation

◆ out_type

typedef boost::scoped_array< unsigned char > ZLibWithDictionary::out_type
protectedinherited

Constructor & Destructor Documentation

◆ CompressStreamGZipWithDictionary()

CompressStreamGZipWithDictionary::CompressStreamGZipWithDictionary ( const std::string &  DictionaryFilename,
int  Level = DEFAULT_LEVEL 
)

◆ ~CompressStreamGZipWithDictionary()

CompressStreamGZipWithDictionary::~CompressStreamGZipWithDictionary ( )

Member Function Documentation

◆ close_stream()

void CompressStreamGZipWithDictionary::close_stream ( )
protectedvirtual

Reimplemented from ZLibWithDictionary.

◆ compress()

void CompressStreamGZipWithDictionary::compress ( const std::string &  Buffer)
protectedvirtual

Implements Compress.

◆ compress_stream()

void ZLibWithDictionary::compress_stream ( const std::string &  Buffer,
int  Flag 
)
protectedvirtualinherited

Reimplemented in CompressZLibBlocking.

◆ open_stream()

void ZLibWithDictionary::open_stream ( )
protectedvirtualinherited

◆ operator()()

void Compress::operator() ( stream_type Stream)
inherited

Member Data Documentation

◆ buffer_size_total

size_t Compress::buffer_size_total
protectedinherited

◆ CHUNK

const size_t ZLibWithDictionary::CHUNK = ( 64 * 1024 )
staticprotectedinherited

◆ compressed_size_total

size_t Compress::compressed_size_total
protectedinherited

◆ DEFAULT_LEVEL

const int CompressStreamGZipWithDictionary::DEFAULT_LEVEL = 1
static

◆ dictionary

std::string ZLibWithDictionary::dictionary
protectedinherited

◆ level

int ZLibWithDictionary::level
protectedinherited

◆ MAX_DICTIONARY_SIZE

const int ZLibWithDictionary::MAX_DICTIONARY_SIZE = ( 32 * 1024 )
staticprotectedinherited

◆ out

boost::scoped_array< unsigned char > ZLibWithDictionary::out
protectedinherited

◆ stream

z_stream ZLibWithDictionary::stream
protectedinherited

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