Input stream for reading from gzip'd data. More...
#include <gzstream.h>
Public Member Functions | |
igzstream () | |
igzstream (const char *name, int open_mode=std::ios::in) | |
gzstreambuf * | rdbuf () |
void | open (const char *name, int open_mode=std::ios::in) |
void | close () |
Protected Attributes | |
gzstreambuf | buf |
Input stream for reading from gzip'd data.
Example Usage:
igzstream in("my-file.txt.gz"); while (!in.eof()) { std::string line = in.getline(); std::cout << "I just read this line: " << line << "\n"; }
Definition at line 92 of file gzstream.h.
igzstream::igzstream | ( | ) | [inline] |
Definition at line 94 of file gzstream.h.
igzstream::igzstream | ( | const char * | name, | |
int | open_mode = std::ios::in | |||
) | [inline] |
Definition at line 95 of file gzstream.h.
gzstreambuf* igzstream::rdbuf | ( | ) | [inline] |
Reimplemented from gzstreambase.
Definition at line 97 of file gzstream.h.
void igzstream::open | ( | const char * | name, | |
int | open_mode = std::ios::in | |||
) | [inline] |
Reimplemented from gzstreambase.
Definition at line 98 of file gzstream.h.
void gzstreambase::close | ( | void | ) | [inherited] |
Definition at line 155 of file gzstream.cpp.
gzstreambuf gzstreambase::buf [protected, inherited] |
Definition at line 76 of file gzstream.h.