ldas-tools-framecpp 3.0.4
Loading...
Searching...
No Matches
CompressGZipWithDictionary Class Reference
Inheritance diagram for CompressGZipWithDictionary:
Collaboration diagram for CompressGZipWithDictionary:

Public Member Functions

 CompressGZipWithDictionary (const std::string &DictionaryFilename, int Level=DEFAULT_LEVEL)
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 open_stream ()
virtual void close_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

◆ CompressGZipWithDictionary()

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

Member Function Documentation

◆ close_stream()

void ZLibWithDictionary::close_stream ( )
protectedvirtualinherited

◆ compress()

void CompressGZipWithDictionary::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 ZLibWithDictionary::DEFAULT_LEVEL = 1
staticinherited

◆ 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:
  • /home/abuild/rpmbuild/BUILD/ldas-tools-framecpp-3.0.4-build/ldas-tools-framecpp-3.0.4/test/compression_beta.cc