Internal class to implement gzstream. More...
#include <gzstream.h>
Public Member Functions | |
Construction / destruction | |
gzstreambuf () | |
default constructor More... | |
~gzstreambuf () | |
destructor More... | |
Interface | |
int | is_open () |
gzstreambuf * | open (const char *name, int open_mode) |
gzstreambuf * | close () |
virtual int | overflow (int c=EOF) |
virtual int | underflow () |
virtual int | sync () |
Private Member Functions | |
Internal helpers | |
int | flush_buffer () |
Private Attributes | |
Data | |
gzFile | file |
file handle for compressed file More... | |
char | buffer [bufferSize] |
data buffer More... | |
char | opened |
open/close state of stream More... | |
int | mode |
I/O mode. More... | |
Static Private Attributes | |
Types | |
static const int | bufferSize = 47+256 |
size of data buff More... | |
Internal class to implement gzstream.
Definition at line 59 of file gzstream.h.
gzstreambuf | ( | ) |
default constructor
Definition at line 94 of file gzstream.h.
References gzstreambuf::buffer, and gzstreambuf::bufferSize.
~gzstreambuf | ( | ) |
gzstreambuf * close | ( | ) |
Definition at line 70 of file gzstream.cpp.
References gzstreambuf::file, gzstreambuf::is_open(), gzstreambuf::opened, and gzstreambuf::sync().
Referenced by gzstreambase::close(), gzstreambase::~gzstreambase(), and gzstreambuf::~gzstreambuf().
|
private |
Definition at line 105 of file gzstream.cpp.
References gzstreambuf::file.
Referenced by gzstreambuf::overflow(), and gzstreambuf::sync().
int is_open | ( | ) |
Definition at line 114 of file gzstream.h.
References gzstreambuf::opened.
Referenced by gzstreambuf::close(), gzstreambase::close(), and gzstreambuf::open().
gzstreambuf * open | ( | const char * | name, |
int | open_mode | ||
) |
Definition at line 47 of file gzstream.cpp.
References gzstreambuf::file, gzstreambuf::is_open(), gzstreambuf::mode, and gzstreambuf::opened.
Referenced by gzstreambase::open().
|
virtual |
Definition at line 115 of file gzstream.cpp.
References gzstreambuf::flush_buffer(), gzstreambuf::mode, and gzstreambuf::opened.
|
virtual |
Definition at line 127 of file gzstream.cpp.
References gzstreambuf::flush_buffer().
Referenced by gzstreambuf::close().
|
virtual |
Definition at line 80 of file gzstream.cpp.
References gzstreambuf::buffer, gzstreambuf::bufferSize, gzstreambuf::file, gzstreambuf::mode, and gzstreambuf::opened.
|
private |
data buffer
Definition at line 76 of file gzstream.h.
Referenced by gzstreambuf::gzstreambuf(), and gzstreambuf::underflow().
|
staticprivate |
size of data buff
Definition at line 68 of file gzstream.h.
Referenced by gzstreambuf::gzstreambuf(), and gzstreambuf::underflow().
|
private |
file handle for compressed file
Definition at line 75 of file gzstream.h.
Referenced by gzstreambuf::close(), gzstreambuf::flush_buffer(), gzstreambuf::open(), and gzstreambuf::underflow().
|
private |
I/O mode.
Definition at line 78 of file gzstream.h.
Referenced by gzstreambuf::open(), gzstreambuf::overflow(), and gzstreambuf::underflow().
|
private |
open/close state of stream
Definition at line 77 of file gzstream.h.
Referenced by gzstreambuf::close(), gzstreambuf::is_open(), gzstreambuf::open(), gzstreambuf::overflow(), and gzstreambuf::underflow().