|
MeteoIODoc 20260726.8efb7964
Environmental timeseries pre-processing
|
A stream buffer for compressed (gzipped) file I/O using zlib with compression level 9.
#include <GZstream.h>
Public Member Functions | |
| GZstreambuf () | |
| ~GZstreambuf () override | |
| bool | open (const std::string &filename, const char *mode) |
| Open a gzipped file. | |
| void | close () |
| Close the file. | |
| bool | is_open () const |
| Check if the stream is open. | |
| std::streampos | tell () const |
| Get the current position. | |
Protected Member Functions | |
| virtual int_type | underflow () override |
| virtual int_type | pbackfail (int_type c) override |
| virtual std::streamsize | showmanyc () override |
| virtual std::streamsize | xsgetn (char_type *s, std::streamsize n) override |
| virtual int_type | overflow (int_type c) override |
| virtual int | sync () override |
| virtual std::streamsize | xsputn (const char_type *s, std::streamsize n) override |
| mio::GZstreambuf::GZstreambuf | ( | ) |
|
override |
| void mio::GZstreambuf::close | ( | ) |
Close the file.
| bool mio::GZstreambuf::is_open | ( | ) | const |
Check if the stream is open.
| bool mio::GZstreambuf::open | ( | const std::string & | filename, |
| const char * | mode | ||
| ) |
Open a gzipped file.
| filename | The file to open |
| mode | The gzopen mode ("rb" for read, "wb9" for write with best compression) |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
| std::streampos mio::GZstreambuf::tell | ( | ) | const |
Get the current position.
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |