zipios 2.3.4
Zipios -- a small C++ library providing 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 (FilterInputStreambuf const &rhs)=delete
 
 FilterInputStreambuf (std::streambuf *inbuf)
 Initialize a filter input stream buffer.
 
virtual ~FilterInputStreambuf ()
 Clean up the object.
 
FilterInputStreambufoperator= (FilterInputStreambuf const &rhs)=delete
 

Protected Attributes

std::streambuf * m_inbuf = nullptr
 

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

◆ FilterInputStreambuf() [1/2]

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.

◆ FilterInputStreambuf() [2/2]

zipios::FilterInputStreambuf::FilterInputStreambuf ( FilterInputStreambuf const &  rhs)
delete

◆ ~FilterInputStreambuf()

zipios::FilterInputStreambuf::~FilterInputStreambuf ( )
virtual

At this time the destructor does nothing.

Note
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 73 of file filterinputstreambuf.cpp.

Member Function Documentation

◆ operator=()

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

Member Data Documentation

◆ m_inbuf

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

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