67 std::ios_base::openmode
mode);
77 std::ios_base::openmode
mode);
102 virtual std::streamsize
135 virtual std::streambuf*
191 std::ios_base::openmode io_mode;
215 std::streamsize buffer_size;
247 std::ios_base::openmode
mode = std::ios_base::in);
256 std::ios_base::openmode
mode = std::ios_base::in);
286 std::ios_base::openmode
mode = std::ios_base::in);
298 std::ios_base::openmode
mode = std::ios_base::in);
336 std::ios_base::openmode
mode = std::ios_base::out);
345 std::ios_base::openmode
mode = std::ios_base::out);
375 std::ios_base::openmode
mode = std::ios_base::out);
387 std::ios_base::openmode
mode = std::ios_base::out);
412template<
typename T1,
typename T2>
417 template <
typename Ta,
typename Tb>
447template<
typename T1,
typename T2>
452 : func(
f), val1(v1), val2(v2)
456template<
typename T1,
typename T2>
459 {
return (*m.func)(s, m.val1, m.val2); }
Gzipped file stream buffer class.
virtual int_type overflow(int_type c=traits_type::eof())
Write put area to gzipped file.
gzfilebuf * close()
Close gzipped file.
virtual int_type underflow()
Fill get area from gzipped file.
bool is_open() const
Check if file is open.
virtual int sync()
Flush stream buffer to file.
gzfilebuf * open(const char *name, std::ios_base::openmode mode)
Open gzipped file.
virtual std::streamsize showmanyc()
Number of characters available in stream buffer.
bool open_mode(std::ios_base::openmode mode, char *c_mode) const
Convert ios open mode int to mode string used by zlib.
virtual std::streambuf * setbuf(char_type *p, std::streamsize n)
Installs external stream buffer.
int setcompression(int comp_level, int comp_strategy=Z_DEFAULT_STRATEGY)
Set compression level and strategy on the fly.
gzfilebuf * attach(int fd, std::ios_base::openmode mode)
Attach to already open gzipped file.
Gzipped file input stream class.
void close()
Close gzipped file.
void attach(int fd, std::ios_base::openmode mode=std::ios_base::in)
Attach to already open gzipped file.
void open(const char *name, std::ios_base::openmode mode=std::ios_base::in)
Open gzipped file.
bool is_open()
Check if file is open.
gzifstream(const char *name, std::ios_base::openmode mode=std::ios_base::in)
Construct stream on gzipped file to be opened.
gzfilebuf * rdbuf() const
Obtain underlying stream buffer.
gzifstream(int fd, std::ios_base::openmode mode=std::ios_base::in)
Construct stream on already open gzipped file.
Gzipped file output stream class.
gzofstream(const char *name, std::ios_base::openmode mode=std::ios_base::out)
Construct stream on gzipped file to be opened.
gzfilebuf * rdbuf() const
Obtain underlying stream buffer.
void close()
Close gzipped file.
void attach(int fd, std::ios_base::openmode mode=std::ios_base::out)
Attach to already open gzipped file.
gzofstream(int fd, std::ios_base::openmode mode=std::ios_base::out)
Construct stream on already open gzipped file.
bool is_open()
Check if file is open.
void open(const char *name, std::ios_base::openmode mode=std::ios_base::out)
Open gzipped file.
Gzipped file output stream manipulator class.
gzomanip2(gzofstream &(*f)(gzofstream &, T1, T2), T1 v1, T2 v2)
friend gzofstream & operator<<(gzofstream &, const gzomanip2< Ta, Tb > &)
gzofstream & setcompression(gzofstream &gzs, int l, int s=Z_DEFAULT_STRATEGY)
gzofstream & operator<<(gzofstream &s, const gzomanip< T > &m)
#define Z_DEFAULT_STRATEGY