FreeCAD
1
2#include "zipios-config.h"
3
4#include "filterinputstreambuf.h"
5
6namespace zipios {
7
8FilterInputStreambuf::FilterInputStreambuf( streambuf *inbuf, bool del_inbuf )
9: _inbuf( inbuf),
10_del_inbuf( del_inbuf )
11{
12_s_pos = 0;
13if (!_inbuf) {
14// throw an exception
15}
16}
17
18
19FilterInputStreambuf::~FilterInputStreambuf() {
20if (_del_inbuf)
21delete _inbuf ;
22}
23
24
25} // namespace
26
27/** \file
28Implementation of FilterInputStreambuf.
29*/
30
31/*
32Zipios++ - a small C++ library that provides easy access to .zip files.
33Copyright (C) 2000 Thomas Søndergaard
34
35This library is free software; you can redistribute it and/or
36modify it under the terms of the GNU Lesser General Public
37License as published by the Free Software Foundation; either
38version 2 of the License, or (at your option) any later version.
39
40This library is distributed in the hope that it will be useful,
41but WITHOUT ANY WARRANTY; without even the implied warranty of
42MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
43Lesser General Public License for more details.
44
45You should have received a copy of the GNU Lesser General Public
46License along with this library; if not, write to the Free Software
47Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
48*/
49