![]() |
Project
|
#include <CompStream.h>
Inherits std::istream.
Public Types | |
using | streambuffer_t = boost::iostreams::filtering_streambuf< boost::iostreams::input > |
Public Member Functions | |
icomp_stream (std::string filename, CompressionMethod method=CompressionMethod::None) | |
icomp_stream (std::istream &backend, CompressionMethod method=CompressionMethod::None) | |
icomp_stream (std::string filename, std::string method) | |
icomp_stream (std::istream &backend, std::string method) | |
An istream variant allowing to add compression filters.
This stream can be used transparently as std::istream while providing decompression 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 54 of file CompStream.h.
using o2::io::icomp_stream::streambuffer_t = boost::iostreams::filtering_streambuf<boost::iostreams::input> |
Definition at line 57 of file CompStream.h.
o2::io::icomp_stream::icomp_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 101 of file CompStream.cxx.
o2::io::icomp_stream::icomp_stream | ( | std::istream & | backend, |
CompressionMethod | method = CompressionMethod::None |
||
) |
constructor
backend | the stream to read data from |
method | compression method specified by enum |
Definition at line 108 of file CompStream.cxx.
o2::io::icomp_stream::icomp_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 115 of file CompStream.cxx.
o2::io::icomp_stream::icomp_stream | ( | std::istream & | 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 122 of file CompStream.cxx.