#include <gzfstream.h>
Public メソッド | |
gzofstream () | |
default constructor | |
gzofstream (const char *path, int level=gzfilebuf::DEFAULT_COMPRESSION, int strategy=gzfilebuf::DEFAULT_STRATEGY) | |
construct streambuf with file name. | |
gzfilebuf * | rdbuf () const |
get const_cast<> pointer to the underlying stream buffer. | |
bool | is_open () |
check if file is open | |
void | open (const char *path, int level=gzfilebuf::DEFAULT_COMPRESSION, int strategy=gzfilebuf::DEFAULT_STRATEGY) |
open gzipped file. | |
void | close () |
close gzipped file. |
This class implements ofstream for gzipped files. Seeking and putback is not supported yet.
rcsc::gzofstream::gzofstream | ( | ) |
default constructor
initializes stream buffer
rcsc::gzofstream::gzofstream | ( | const char * | path, | |
int | level = gzfilebuf::DEFAULT_COMPRESSION , |
|||
int | strategy = gzfilebuf::DEFAULT_STRATEGY | |||
) | [explicit] |
construct streambuf with file name.
path | file path. | |
level | compression level | |
strategy | compression strategy |
gzfilebuf* rcsc::gzofstream::rdbuf | ( | ) | const [inline] |
get const_cast<> pointer to the underlying stream buffer.
bool rcsc::gzofstream::is_open | ( | ) | [inline] |
check if file is open
true | file opened. | |
false | file is not opened. |
void rcsc::gzofstream::open | ( | const char * | path, | |
int | level = gzfilebuf::DEFAULT_COMPRESSION , |
|||
int | strategy = gzfilebuf::DEFAULT_STRATEGY | |||
) |
open gzipped file.
path | file path. | |
level | compression level | |
strategy | compression strategy |
void rcsc::gzofstream::close | ( | ) |
close gzipped file.
if close failed, stream will become state fail().