zipios++
2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
|
A base class to develop output stream filters. More...
#include <filteroutputstreambuf.hpp>
Public Member Functions | |
FilterOutputStreambuf (std::streambuf *outbuf) | |
Initialize your filter output stream buffer. More... | |
FilterOutputStreambuf (FilterOutputStreambuf const &src)=delete | |
virtual | ~FilterOutputStreambuf () |
Clean up the object. More... | |
FilterOutputStreambuf const & | operator= (FilterOutputStreambuf const &src)=delete |
Protected Attributes | |
std::streambuf * | m_outbuf |
An output stream buffer filter is an std::streambuf that filters the output it gets from the std::streambuf it is attached to.
FilterOutputStreambuf is a base class to derive input streambuf filters from.
Definition at line 40 of file filteroutputstreambuf.hpp.
zipios::FilterOutputStreambuf::FilterOutputStreambuf | ( | std::streambuf * | outbuf | ) |
This constructor initializes the filter by saving the outbuf buffer pointer in it.
[in] | outbuf | The streambuf to pass the filtered data on to. |
Definition at line 56 of file filteroutputstreambuf.cpp.
References m_outbuf.
|
delete |
|
virtual |
At this time the destructor does nothing.
The former version would eventually delete the m_outbuf pointer. However, here we have decided that this class did not own that pointer and thus should not have such permissions.
Definition at line 74 of file filteroutputstreambuf.cpp.
|
delete |
|
protected |
Definition at line 49 of file filteroutputstreambuf.hpp.
Referenced by FilterOutputStreambuf(), zipios::ZipOutputStreambuf::finish(), zipios::DeflateOutputStreambuf::flushOutvec(), zipios::ZipOutputStreambuf::overflow(), zipios::ZipOutputStreambuf::putNextEntry(), zipios::ZipOutputStreambuf::updateEntryHeaderInfo(), zipios::GZIPOutputStreambuf::writeHeader(), and zipios::GZIPOutputStreambuf::writeInt().