A C++ I/O streams interface to the zlib gz* functions. More...
#include <zfstream.hxx>
Public Member Functions | |
gzfilebuf () | |
Constructor. | |
virtual | ~gzfilebuf () |
Destructor. | |
gzfilebuf * | open (const char *name, ios_openmode io_mode) |
Open a stream. | |
gzfilebuf * | attach (int file_descriptor, ios_openmode io_mode) |
Attach to an existing file descriptor. | |
gzfilebuf * | close () |
Close stream. | |
bool | is_open () const |
virtual std::streampos | seekoff (std::streamoff off, ios_seekdir way, int which) |
virtual int | sync () |
sync the stream |
A C++ I/O streams interface to the zlib gz* functions.
Definition at line 56 of file zfstream.hxx.
gzfilebuf * gzfilebuf::attach | ( | int | file_descriptor, | |
ios_openmode | io_mode | |||
) |
Attach to an existing file descriptor.
file_descriptor | file descriptor | |
io_mode | mode flags |
Definition at line 121 of file zfstream.cxx.
bool gzfilebuf::is_open | ( | ) | const [inline] |
Definition at line 90 of file zfstream.hxx.
gzfilebuf * gzfilebuf::open | ( | const char * | name, | |
ios_openmode | io_mode | |||
) |
Open a stream.
name | file name | |
io_mode | mdoe flags |
Definition at line 102 of file zfstream.cxx.
std::streampos gzfilebuf::seekoff | ( | std::streamoff | off, | |
ios_seekdir | way, | |||
int | which | |||
) | [virtual] |
Definition at line 170 of file zfstream.cxx.