Public Member Functions | Protected Attributes

igzstream Class Reference
[Z-Lib Compatible Streaming Library]

Input stream for reading from gzip'd data. More...

#include <gzstream.h>

Inheritance diagram for igzstream:
Inheritance graph
[legend]
Collaboration diagram for igzstream:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 igzstream ()
 igzstream (const char *name, int open_mode=std::ios::in)
gzstreambufrdbuf ()
void open (const char *name, int open_mode=std::ios::in)
void close ()

Protected Attributes

gzstreambuf buf

Detailed Description

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.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.


Member Data Documentation

gzstreambuf gzstreambase::buf [protected, inherited]

Definition at line 76 of file gzstream.h.


The documentation for this class was generated from the following file: