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

Public Member Functions

 ZLibWithDictionary (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 open_stream ()
virtual void close_stream ()
virtual void compress_stream (const std::string &Buffer, int Flag)
virtual void compress (const std::string &Buffer)=0

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
protected

Constructor & Destructor Documentation

◆ ZLibWithDictionary()

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

Member Function Documentation

◆ close_stream()

void ZLibWithDictionary::close_stream ( )
protectedvirtual

◆ compress()

virtual void Compress::compress ( const std::string & Buffer)
protectedpure virtualinherited

◆ compress_stream()

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

Reimplemented in CompressZLibBlocking.

◆ open_stream()

void ZLibWithDictionary::open_stream ( )
protectedvirtual

◆ 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 )
staticprotected

◆ compressed_size_total

size_t Compress::compressed_size_total
protectedinherited

◆ DEFAULT_LEVEL

const int ZLibWithDictionary::DEFAULT_LEVEL = 1
static

◆ dictionary

std::string ZLibWithDictionary::dictionary
protected

◆ level

int ZLibWithDictionary::level
protected

◆ MAX_DICTIONARY_SIZE

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

◆ out

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

◆ stream

z_stream ZLibWithDictionary::stream
protected

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