#include <gzfstream.h>
Public メソッド | |
gzifstream () | |
default constructor | |
gzifstream (const char *path) | |
init stream buffer and open file. | |
gzfilebuf * | rdbuf () const |
get underlying stream buffer. | |
bool | is_open () |
check if file is open. | |
void | open (const char *path) |
open gzipped file. | |
void | close () |
close gzipped file. |
This class implements ifstream for gzipped files. Seeking and putback is not supported yet.
rcsc::gzifstream::gzifstream | ( | const char * | path | ) | [explicit] |
init stream buffer and open file.
path | file path to be opened. |
gzfilebuf* rcsc::gzifstream::rdbuf | ( | ) | const [inline] |
get underlying stream buffer.
bool rcsc::gzifstream::is_open | ( | ) | [inline] |
check if file is open.
true | file opened. | |
false | file is not opened. |
void rcsc::gzifstream::open | ( | const char * | path | ) |
open gzipped file.
path | file path. |
void rcsc::gzifstream::close | ( | ) |
close gzipped file.
if failed,stream will become state fail()