Gzipped file output stream class. More...
#include <zfstream.h>
Public Member Functions | |
void | attach (int fd, std::ios_base::openmode mode=std::ios_base::out) |
Attach to already open gzipped file. More... | |
void | attach (int fd, std::ios_base::openmode mode=std::ios_base::out) |
Attach to already open gzipped file. More... | |
void | close () |
Close gzipped file. More... | |
void | close () |
Close gzipped file. More... | |
gzofstream () | |
gzofstream () | |
gzofstream () | |
gzofstream () | |
gzofstream (const char *name, int io_mode=ios::out) | |
gzofstream (const char *name, int io_mode=ios::out) | |
gzofstream (const char *name, std::ios_base::openmode mode=std::ios_base::out) | |
Construct stream on gzipped file to be opened. More... | |
gzofstream (const char *name, std::ios_base::openmode mode=std::ios_base::out) | |
Construct stream on gzipped file to be opened. More... | |
gzofstream (int fd, int io_mode=ios::out) | |
gzofstream (int fd, int io_mode=ios::out) | |
gzofstream (int fd, std::ios_base::openmode mode=std::ios_base::out) | |
Construct stream on already open gzipped file. More... | |
gzofstream (int fd, std::ios_base::openmode mode=std::ios_base::out) | |
Construct stream on already open gzipped file. More... | |
bool | is_open () |
Check if file is open. More... | |
bool | is_open () |
Check if file is open. More... | |
void | open (const char *name, std::ios_base::openmode mode=std::ios_base::out) |
Open gzipped file. More... | |
void | open (const char *name, std::ios_base::openmode mode=std::ios_base::out) |
Open gzipped file. More... | |
gzfilebuf * | rdbuf () const |
gzfilebuf * | rdbuf () const |
virtual | ~gzofstream () |
virtual | ~gzofstream () |
![]() | |
void | attach (int fd, int io_mode) |
void | attach (int fd, int io_mode) |
void | close () |
void | close () |
void | open (const char *name, int io_mode) |
void | open (const char *name, int io_mode) |
virtual | ~gzfilestream_common () |
virtual | ~gzfilestream_common () |
Private Attributes | |
gzfilebuf | sb |
Additional Inherited Members | |
![]() | |
gzfilestream_common () | |
gzfilestream_common () | |
Gzipped file output stream class.
This class implements ofstream for gzipped files. Seeking and putback is not supported yet.
Definition at line 80 of file bloaty/third_party/zlib/contrib/iostream/zfstream.h.
gzofstream::gzofstream | ( | ) |
Definition at line 311 of file bloaty/third_party/zlib/contrib/iostream/zfstream.cpp.
Definition at line 317 of file bloaty/third_party/zlib/contrib/iostream/zfstream.cpp.
Definition at line 323 of file bloaty/third_party/zlib/contrib/iostream/zfstream.cpp.
|
virtual |
Definition at line 329 of file bloaty/third_party/zlib/contrib/iostream/zfstream.cpp.
gzofstream::gzofstream | ( | ) |
|
explicit |
Construct stream on gzipped file to be opened.
name | File name. |
mode | Open mode flags (forced to contain ios::out). |
Definition at line 434 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.cc.
|
explicit |
Construct stream on already open gzipped file.
fd | File descriptor. |
mode | Open mode flags (forced to contain ios::out). |
Definition at line 443 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.cc.
gzofstream::gzofstream | ( | ) |
|
virtual |
gzofstream::gzofstream | ( | ) |
|
explicit |
Construct stream on gzipped file to be opened.
name | File name. |
mode | Open mode flags (forced to contain ios::out). |
|
explicit |
Construct stream on already open gzipped file.
fd | File descriptor. |
mode | Open mode flags (forced to contain ios::out). |
void gzofstream::attach | ( | int | fd, |
std::ios_base::openmode | mode = std::ios_base::out |
||
) |
Attach to already open gzipped file.
fd | File descriptor. |
mode | Open mode flags (forced to contain ios::out). |
Stream will be in state good() if attach succeeded; otherwise in state fail().
Definition at line 464 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.cc.
void gzofstream::attach | ( | int | fd, |
std::ios_base::openmode | mode = std::ios_base::out |
||
) |
void gzofstream::close | ( | ) |
Close gzipped file.
Stream will be in state fail() if close failed.
Definition at line 475 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.cc.
|
inline |
Check if file is open.
Definition at line 359 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.h.
|
inline |
Check if file is open.
Definition at line 359 of file zlib/contrib/iostream3/zfstream.h.
void gzofstream::open | ( | const char * | name, |
std::ios_base::openmode | mode = std::ios_base::out |
||
) |
Open gzipped file.
name | File name. |
mode | Open mode flags (forced to contain ios::out). |
Stream will be in state good() if file opens successfully; otherwise in state fail(). This differs from the behavior of ofstream, which never sets the state to good() and therefore won't allow you to reuse the stream for a second file unless you manually clear() the state. The choice is a matter of convenience.
void gzofstream::open | ( | const char * | name, |
std::ios_base::openmode | mode = std::ios_base::out |
||
) |
Open gzipped file.
name | File name. |
mode | Open mode flags (forced to contain ios::out). |
Stream will be in state good() if file opens successfully; otherwise in state fail(). This differs from the behavior of ofstream, which never sets the state to good() and therefore won't allow you to reuse the stream for a second file unless you manually clear() the state. The choice is a matter of convenience.
Definition at line 453 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.cc.
|
inline |
Obtain underlying stream buffer.
Definition at line 351 of file zlib/contrib/iostream3/zfstream.h.
|
inline |
Obtain underlying stream buffer.
Definition at line 351 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.h.
|
private |
Underlying stream buffer.
Definition at line 401 of file bloaty/third_party/zlib/contrib/iostream3/zfstream.h.