zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
Public Member Functions | Protected Attributes | List of all members
zipios::FilterOutputStreambuf Class Reference

A base class to develop output stream filters. More...

#include <filteroutputstreambuf.hpp>

Inheritance diagram for zipios::FilterOutputStreambuf:
Inheritance graph
Collaboration diagram for zipios::FilterOutputStreambuf:
Collaboration graph

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

Detailed Description

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.

Constructor & Destructor Documentation

zipios::FilterOutputStreambuf::FilterOutputStreambuf ( std::streambuf *  outbuf)

This constructor initializes the filter by saving the outbuf buffer pointer in it.

[in]outbufThe streambuf to pass the filtered data on to.

Definition at line 56 of file filteroutputstreambuf.cpp.

References m_outbuf.

zipios::FilterOutputStreambuf::FilterOutputStreambuf ( FilterOutputStreambuf const &  src)
zipios::FilterOutputStreambuf::~FilterOutputStreambuf ( )

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.

Member Function Documentation

FilterOutputStreambuf const& zipios::FilterOutputStreambuf::operator= ( FilterOutputStreambuf const &  src)

Member Data Documentation

std::streambuf* zipios::FilterOutputStreambuf::m_outbuf

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