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::FilterInputStreambuf Class Reference

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

#include <filterinputstreambuf.hpp>

Inheritance diagram for zipios::FilterInputStreambuf:
Inheritance graph
[legend]
Collaboration diagram for zipios::FilterInputStreambuf:
Collaboration graph
[legend]

Public Member Functions

 FilterInputStreambuf (std::streambuf *inbuf)
 Initialize a filter input stream buffer. More...
 
 FilterInputStreambuf (FilterInputStreambuf const &src)=delete
 
virtual ~FilterInputStreambuf ()
 Clean up the object. More...
 
FilterInputStreambuf const & operator= (FilterInputStreambuf const &src)=delete
 

Protected Attributes

std::streambuf * m_inbuf
 

Detailed Description

An input stream buffer filter is an std::streambuf that filters the input it gets from the std::streambuf it is attached to.

zipios::FilterInputStreambuf is a base class to derive input streambuf filters from.

Definition at line 37 of file filterinputstreambuf.hpp.

Constructor & Destructor Documentation

zipios::FilterInputStreambuf::FilterInputStreambuf ( std::streambuf *  inbuf)

This constructor initializes the FilterInputStreambuf by saving the inbuf pointer in this class.

Parameters
[in]inbufThe streambuf to use for input.

Definition at line 54 of file filterinputstreambuf.cpp.

References m_inbuf.

zipios::FilterInputStreambuf::FilterInputStreambuf ( FilterInputStreambuf const &  src)
delete
zipios::FilterInputStreambuf::~FilterInputStreambuf ( )
virtual

At this time the destructor does nothing.

The former version would eventually delete the m_inbuf pointer. However, here we have decided that this class did not own that pointer and thus should not have such permissions.

Definition at line 72 of file filterinputstreambuf.cpp.

Member Function Documentation

FilterInputStreambuf const& zipios::FilterInputStreambuf::operator= ( FilterInputStreambuf const &  src)
delete

Member Data Documentation

std::streambuf* zipios::FilterInputStreambuf::m_inbuf
protected

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