1 #ifndef GENESIS_UTILS_IO_GZIP_STREAM_H_ 2 #define GENESIS_UTILS_IO_GZIP_STREAM_H_ 149 :
public std::istream
155 bool auto_detect =
true,
156 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
160 std::streambuf * sbuf_p,
161 bool auto_detect =
true,
162 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
194 :
public std::ostream
201 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
205 std::streambuf* sbuf_p,
207 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
232 template <
typename FStreamType >
236 : file_stream_(filename, mode)
278 ,
public std::istream
283 std::string
const& filename,
284 std::ios_base::openmode mode = std::ios_base::in,
285 bool auto_detect =
true,
286 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
315 ,
public std::ostream
320 std::string
const& filename,
321 std::ios_base::openmode mode = std::ios_base::out,
323 std::size_t buffer_size = GZIP_DEFAULT_BUFFER_SIZE
337 #endif // include guard Output stream that offers on-the-fly gzip-compression.
GzipCompressionLevel
List of possible compression levels used for GzipOStream.
Helper class template for managing the construction order between stream classes. ...
Container namespace for all symbols of genesis in order to keep them separate when used as a library...
static const std::size_t GZIP_DEFAULT_BUFFER_SIZE
Default buffer size for all gzip (de)compression buffers.
Input file stream that offers on-the-fly gzip-decompression if needed.
Input stream that offers on-the-fly gzip-decompression if needed.
Out file stream that offers on-the-fly gzip-compression.
StrictFStreamHolder(std::string const &filename, std::ios_base::openmode mode=std::ios_base::in)