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

Public Member Functions

 CompressZLibBlocking (size_t BlockSize, const std::string &DictionaryFilename, int Level=DEFAULT_LEVEL)
 
 CompressZLibBlocking (const std::string &DictionaryFilename, int Level=DEFAULT_LEVEL)
 
virtual ~CompressZLibBlocking ()
 
void operator() (stream_type &Stream)
 

Static Public Attributes

static const size_t DEFAULT_BLOCK_SIZE = ( 16 * 1024 * 1024 )
 
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 compress_stream (const std::string &Buffer, int Flag)
 
virtual void open_stream ()
 
virtual void close_stream ()
 

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 )
 

Private Member Functions

void verify () const
 

Private Attributes

const size_t block_size
 
size_t count
 
size_t current_block_size
 
std::string verify_source_buffer
 
std::string verify_compressed_buffer
 

Member Typedef Documentation

◆ out_type

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

Constructor & Destructor Documentation

◆ CompressZLibBlocking() [1/2]

CompressZLibBlocking::CompressZLibBlocking ( size_t  BlockSize,
const std::string &  DictionaryFilename,
int  Level = DEFAULT_LEVEL 
)

◆ CompressZLibBlocking() [2/2]

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

◆ ~CompressZLibBlocking()

CompressZLibBlocking::~CompressZLibBlocking ( )
virtual

Member Function Documentation

◆ close_stream()

void ZLibWithDictionary::close_stream ( )
protectedvirtualinherited

◆ compress()

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

Implements Compress.

◆ compress_stream()

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

Reimplemented from ZLibWithDictionary.

◆ open_stream()

void ZLibWithDictionary::open_stream ( )
protectedvirtualinherited

◆ operator()()

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

◆ verify()

void CompressZLibBlocking::verify ( ) const
private

Member Data Documentation

◆ block_size

const size_t CompressZLibBlocking::block_size
private

◆ 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

◆ count

size_t CompressZLibBlocking::count
private

◆ current_block_size

size_t CompressZLibBlocking::current_block_size
private

◆ DEFAULT_BLOCK_SIZE

const size_t CompressZLibBlocking::DEFAULT_BLOCK_SIZE = ( 16 * 1024 * 1024 )
static

◆ 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

◆ verify_compressed_buffer

std::string CompressZLibBlocking::verify_compressed_buffer
mutableprivate

◆ verify_source_buffer

std::string CompressZLibBlocking::verify_source_buffer
mutableprivate

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