zipios::GZIPOutputStreambuf Class Reference

GZIPOutputStreambuf is a zip output streambuf filter. More...

#include <gzipoutputstreambuf.h>

Inheritance diagram for zipios::GZIPOutputStreambuf:
zipios::DeflateOutputStreambuf zipios::FilterOutputStreambuf

List of all members.

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 ()

Detailed Description

GZIPOutputStreambuf is a zip output streambuf filter.

Definition at line 15 of file gzipoutputstreambuf.h.


Constructor & Destructor Documentation

zipios::GZIPOutputStreambuf::GZIPOutputStreambuf ( streambuf *  outbuf,
bool  del_outbuf = false 
) [explicit]

GZIPOutputStreambuf constructor.

A newly constructed GZIPOutputStreambuf is ready to accept data.

Parameters:
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]

Destructor.

Definition at line 47 of file gzipoutputstreambuf.cpp.

References finish().


Member Function Documentation

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.


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

Generated on Wed Nov 23 19:02:52 2011 for FreeCAD by  doxygen 1.6.1