#include <zfstream.h>
Inherits gzfilestream_common.
Inheritance diagram for gzifstream:


Public Member Functions | |
| gzifstream () | |
| gzifstream (const char *name, int io_mode=ios::in) | |
| gzifstream (int fd, int io_mode=ios::in) | |
| virtual | ~gzifstream () |
| gzifstream () | |
| gzifstream (const char *name, std::ios_base::openmode mode=std::ios_base::in) | |
| Construct stream on gzipped file to be opened. | |
| gzifstream (int fd, std::ios_base::openmode mode=std::ios_base::in) | |
| Construct stream on already open gzipped file. | |
| gzfilebuf * | rdbuf () const |
| bool | is_open () |
| Check if file is open. | |
| void | open (const char *name, std::ios_base::openmode mode=std::ios_base::in) |
| Open gzipped file. | |
| void | attach (int fd, std::ios_base::openmode mode=std::ios_base::in) |
| Attach to already open gzipped file. | |
| void | close () |
| Close gzipped file. | |
Private Attributes | |
| gzfilebuf | sb |
This class implements ifstream for gzipped files. Seeking and putback is not supported yet.
Definition at line 68 of file zfstream.h.
|
|
Definition at line 291 of file zfstream.cpp. References clear. |
|
||||||||||||
|
Definition at line 297 of file zfstream.cpp. References gzfilestream_common::open(). |
|
||||||||||||
|
Definition at line 303 of file zfstream.cpp. References gzfilestream_common::attach(). |
|
|
Definition at line 309 of file zfstream.cpp. |
|
|
|
|
||||||||||||
|
Construct stream on gzipped file to be opened.
Definition at line 379 of file zfstream.cc. |
|
||||||||||||
|
Construct stream on already open gzipped file.
Definition at line 388 of file zfstream.cc. |
|
||||||||||||
|
Attach to already open gzipped file.
Definition at line 409 of file zfstream.cc. References gzfilebuf::attach(), clear, in, and sb. Referenced by gzifstream(). |
|
|
Close gzipped file. Stream will be in state fail() if close failed. Reimplemented from gzfilestream_common. Definition at line 420 of file zfstream.cc. References gzfilebuf::close(), and sb. |
|
|
Check if file is open.
Definition at line 270 of file zfstream.h. References gzfilebuf::is_open(), and sb. |
|
||||||||||||
|
Open gzipped file.
Definition at line 398 of file zfstream.cc. References clear, in, gzfilebuf::open(), and sb. Referenced by gzifstream(). |
|
|
Obtain underlying stream buffer. Definition at line 262 of file zfstream.h. References sb. |
|
|
Underlying stream buffer. Definition at line 312 of file zfstream.h. Referenced by attach(), close(), gzifstream(), is_open(), open(), and rdbuf(). |
1.4.6