GZIPOutputStreambuf is a zip output streambuf filter. More...
#include <gzipoutputstreambuf.h>
Public Member Functions | |
void | close () |
Calls finish. | |
void | finish () |
Finishes the compression. | |
GZIPOutputStreambuf (streambuf *outbuf, bool del_outbuf=false) | |
GZIPOutputStreambuf constructor. | |
void | setComment (const string &comment) |
void | setFilename (const string &filename) |
virtual | ~GZIPOutputStreambuf () |
Destructor. | |
Protected Member Functions | |
virtual int | overflow (int c=EOF) |
virtual int | sync () |
GZIPOutputStreambuf is a zip output streambuf filter.
Definition at line 15 of file gzipoutputstreambuf.h.
zipios::GZIPOutputStreambuf::GZIPOutputStreambuf | ( | streambuf * | outbuf, | |
bool | del_outbuf = false | |||
) | [explicit] |
GZIPOutputStreambuf constructor.
A newly constructed GZIPOutputStreambuf is ready to accept data.
outbuf | the streambuf to use for output. | |
del_outbuf | if true is specified outbuf will be deleted, when the GZIPOutputStreambuf is destructed. |
Definition at line 19 of file gzipoutputstreambuf.cpp.
zipios::GZIPOutputStreambuf::~GZIPOutputStreambuf | ( | ) | [virtual] |
void zipios::GZIPOutputStreambuf::close | ( | ) |
Calls finish.
Definition at line 33 of file gzipoutputstreambuf.cpp.
References finish().
Referenced by zipios::GZIPOutputStream::close().
void zipios::GZIPOutputStreambuf::finish | ( | ) |
Finishes the compression.
Definition at line 37 of file gzipoutputstreambuf.cpp.
References zipios::DeflateOutputStreambuf::closeStream().
Referenced by close(), zipios::GZIPOutputStream::finish(), and ~GZIPOutputStreambuf().
int zipios::GZIPOutputStreambuf::overflow | ( | int | c = EOF |
) | [protected, virtual] |
Reimplemented from zipios::DeflateOutputStreambuf.
Definition at line 51 of file gzipoutputstreambuf.cpp.
void zipios::GZIPOutputStreambuf::setComment | ( | const string & | comment | ) |
Definition at line 29 of file gzipoutputstreambuf.cpp.
Referenced by zipios::GZIPOutputStream::setComment().
void zipios::GZIPOutputStreambuf::setFilename | ( | const string & | filename | ) |
Definition at line 25 of file gzipoutputstreambuf.cpp.
Referenced by zipios::GZIPOutputStream::setFilename().
int zipios::GZIPOutputStreambuf::sync | ( | ) | [protected, virtual] |
Reimplemented from zipios::DeflateOutputStreambuf.
Definition at line 59 of file gzipoutputstreambuf.cpp.