![]() |
Project
|
#include <CompStream.h>
Inherits std::ostream.
Public Types | |
using | streambuffer_t = boost::iostreams::filtering_streambuf< boost::iostreams::output > |
Public Member Functions | |
ocomp_stream (std::string filename, CompressionMethod method=CompressionMethod::None) | |
ocomp_stream (std::ostream &backend, CompressionMethod method=CompressionMethod::None) | |
ocomp_stream (std::string filename, std::string method) | |
ocomp_stream (std::ostream &backend, std::string method) | |
An ostream variant allowing to add compression filters.
This stream can be used transparently as std::ostream while providing compression directly on the backend stream/file.
Implementation is based on boost::iostreams utilities, the filtered_streambuf and compression filters. Currently supporting gzip, zlib, bzip2, and lzma algorithms. The algorithm is specified either by enum or string to the constructor.
Definition at line 95 of file CompStream.h.
using o2::io::ocomp_stream::streambuffer_t = boost::iostreams::filtering_streambuf<boost::iostreams::output> |
Definition at line 98 of file CompStream.h.
o2::io::ocomp_stream::ocomp_stream | ( | std::string | filename, |
CompressionMethod | method = CompressionMethod::None |
||
) |
constructor
filename | name of the file to read from |
method | compression method specified by enum |
Definition at line 129 of file CompStream.cxx.
o2::io::ocomp_stream::ocomp_stream | ( | std::ostream & | backend, |
CompressionMethod | method = CompressionMethod::None |
||
) |
constructor
backend | the stream to read data from |
method | compression method specified by enum |
Definition at line 136 of file CompStream.cxx.
o2::io::ocomp_stream::ocomp_stream | ( | std::string | filename, |
std::string | method | ||
) |
constructor
filename | name of the file to read from |
method | compression method specified by string: gzip, zlib, bzip2, lzma |
Definition at line 143 of file CompStream.cxx.
o2::io::ocomp_stream::ocomp_stream | ( | std::ostream & | backend, |
std::string | method | ||
) |
constructor
backend | the stream to read data from |
method | compression method specified by string: gzip, zlib, bzip2, lzma |
Definition at line 150 of file CompStream.cxx.