zipios++  2.0.2
Zipios++ – a small C++ library that provides easy access to .zip files.
filterinputstreambuf.cpp
Go to the documentation of this file.
1 /*
2  Zipios++ - a small C++ library that provides easy access to .zip files.
3 
4  Copyright (C) 2000-2007 Thomas Sondergaard
5  Copyright (C) 2015 Made to Order Software Corporation
6 
7  This library is free software; you can redistribute it and/or
8  modify it under the terms of the GNU Lesser General Public
9  License as published by the Free Software Foundation; either
10  version 2 of the License, or (at your option) any later version.
11 
12  This library is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  Lesser General Public License for more details.
16 
17  You should have received a copy of the GNU Lesser General Public
18  License along with this library; if not, write to the Free Software
19  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
20 */
21 
28 #include "filterinputstreambuf.hpp"
29 
31 
32 
33 namespace zipios
34 {
35 
55  : m_inbuf(inbuf)
56 {
57  if(!m_inbuf)
58  {
59  throw InvalidStateException("FilterInputStreambuf::FilterInputStreambuf() was called with a null streambuf pointer");
60  }
61 }
62 
63 
73 {
74 }
75 
76 
77 } // namespace
78 
79 // Local Variables:
80 // mode: cpp
81 // indent-tabs-mode: nil
82 // c-basic-offset: 4
83 // tab-width: 4
84 // End:
85 
86 // vim: ts=4 sw=4 et
Header file that defines zipios::FilterInputStreambuf.
Various exceptions used throughout the Zipios++ library, all based on zipios::Exception.
virtual ~FilterInputStreambuf()
Clean up the object.
Exception used when it is not possible to move forward.
FilterInputStreambuf(std::streambuf *inbuf)
Initialize a filter input stream buffer.