![]() |
Chemical Data Processing Library C++ API - Version 1.4.0
|
Base class for stream wrappers that buffer (de)compressed data through a temporary file. More...
#include <CompressionStreams.hpp>
Inheritance diagram for CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >:Public Types | |
| typedef StreamType::char_type | char_type |
| The character type of the wrapped stream. More... | |
| typedef StreamType::traits_type | traits_type |
| The character traits type of the wrapped stream. More... | |
| typedef StreamType::int_type | int_type |
| The integer type used to represent characters and EOF. More... | |
| typedef StreamType::pos_type | pos_type |
| The type used to represent stream positions. More... | |
| typedef StreamType::off_type | off_type |
| The type used to represent stream offsets. More... | |
| typedef std::basic_istream< char_type, traits_type > | IStreamType |
| Input-stream type with matching character and traits types. More... | |
| typedef std::basic_ostream< char_type, traits_type > | OStreamType |
| Output-stream type with matching character and traits types. More... | |
Public Member Functions | |
| CompressionStreamBase () | |
Constructs the CompressionStreamBase instance and installs the temporary-file buffer. More... | |
Protected Member Functions | |
| virtual | ~CompressionStreamBase () |
| void | closeTmpFile () |
| void | openTmpFile () |
| void | decompInput (IStreamType &is) |
| void | compOutput (OStreamType &os) |
Base class for stream wrappers that buffer (de)compressed data through a temporary file.
Subclasses inherit a hidden std::basic_filebuf and use it as the working buffer while transparently compressing/decompressing data on open/close.
| CompAlgo | The compression algorithm identifier (see Util::CompressionAlgo). |
| StreamType | The standard stream type (std::basic_istream/ostream/iostream) to derive from. |
| typedef StreamType::char_type CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::char_type |
The character type of the wrapped stream.
| typedef StreamType::traits_type CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::traits_type |
The character traits type of the wrapped stream.
| typedef StreamType::int_type CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::int_type |
The integer type used to represent characters and EOF.
| typedef StreamType::pos_type CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::pos_type |
The type used to represent stream positions.
| typedef StreamType::off_type CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::off_type |
The type used to represent stream offsets.
| typedef std::basic_istream<char_type, traits_type> CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::IStreamType |
Input-stream type with matching character and traits types.
| typedef std::basic_ostream<char_type, traits_type> CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::OStreamType |
Output-stream type with matching character and traits types.
| CDPL::Util::CompressionStreamBase< CompAlgo, StreamType >::CompressionStreamBase |
Constructs the CompressionStreamBase instance and installs the temporary-file buffer.
|
inlineprotectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |