Output stream for writing gzip'd data. More...
#include <gzstream.h>
Public Member Functions | |
ogzstream () | |
ogzstream (const char *name, int mode=std::ios::out) | |
gzstreambuf * | rdbuf () |
void | open (const char *name, int open_mode=std::ios::out) |
void | close () |
Protected Attributes | |
gzstreambuf | buf |
Output stream for writing gzip'd data.
Example Usage:
function(void) { ogzstream out("my-other-file.txt.gz"); out << "This is the first line of the gzip'd file.\n"; out << "This is the second and final line."; }
Definition at line 103 of file gzstream.h.
ogzstream::ogzstream | ( | ) | [inline] |
Definition at line 105 of file gzstream.h.
ogzstream::ogzstream | ( | const char * | name, | |
int | mode = std::ios::out | |||
) | [inline] |
Definition at line 106 of file gzstream.h.
gzstreambuf* ogzstream::rdbuf | ( | ) | [inline] |
Reimplemented from gzstreambase.
Definition at line 108 of file gzstream.h.
void ogzstream::open | ( | const char * | name, | |
int | open_mode = std::ios::out | |||
) | [inline] |
Reimplemented from gzstreambase.
Definition at line 109 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.