Output stream wrapper that transparently compresses data and writes it to an underlying sink stream when the wrapper is closed or destroyed.
More...
#include <CompressionStreams.hpp>
|
| typedef StreamType::char_type | char_type |
| | The character type of the stream. More...
|
| |
| typedef StreamType::traits_type | traits_type |
| | The character traits type of the 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 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...
|
| |
|
| | CompressionOStream () |
| | Constructs the CompressionOStream instance without an associated sink stream. More...
|
| |
| | CompressionOStream (StreamType &stream) |
| | Constructs the CompressionOStream instance and immediately opens it on stream. More...
|
| |
| | ~CompressionOStream () |
| | Destructor. Flushes any buffered data to the sink stream as compressed output. More...
|
| |
| void | open (StreamType &stream) |
| | Opens the compression stream on stream. More...
|
| |
| void | close () |
| | Closes the compression stream and writes the compressed output to the sink stream. More...
|
| |
| | CompressionStreamBase () |
| | Constructs the CompressionStreamBase instance and installs the temporary-file buffer. More...
|
| |
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
class CDPL::Util::CompressionOStream< CompAlgo, CharT, TraitsT >
Output stream wrapper that transparently compresses data and writes it to an underlying sink stream when the wrapper is closed or destroyed.
- Template Parameters
-
| CompAlgo | The compression algorithm identifier (see Util::CompressionAlgo). |
| CharT | The character type of the stream. |
| TraitsT | The character traits type of the stream. |
◆ char_type
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
The character type of the stream.
◆ traits_type
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
The character traits type of the stream.
◆ int_type
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
The integer type used to represent characters and EOF.
◆ pos_type
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
The type used to represent stream positions.
◆ off_type
template<CompressionAlgo CompAlgo, typename CharT = char, typename TraitsT = std::char_traits<CharT>>
The type used to represent stream offsets.
◆ CompressionOStream() [1/2]
template<CDPL::Util::CompressionAlgo CompAlgo, typename CharT , typename TraitsT >
Constructs the CompressionOStream instance without an associated sink stream.
◆ CompressionOStream() [2/2]
template<CDPL::Util::CompressionAlgo CompAlgo, typename CharT , typename TraitsT >
Constructs the CompressionOStream instance and immediately opens it on stream.
- Parameters
-
| stream | The sink stream that will receive the compressed output. |
◆ ~CompressionOStream()
template<CDPL::Util::CompressionAlgo CompAlgo, typename CharT , typename TraitsT >
Destructor. Flushes any buffered data to the sink stream as compressed output.
◆ open()
template<CDPL::Util::CompressionAlgo CompAlgo, typename CharT , typename TraitsT >
Opens the compression stream on stream.
- Parameters
-
| stream | The sink stream that will receive the compressed output. |
◆ close()
template<CDPL::Util::CompressionAlgo CompAlgo, typename CharT , typename TraitsT >
Closes the compression stream and writes the compressed output to the sink stream.
The documentation for this class was generated from the following file: