00001 00002 #include "zipios-config.h" 00003 00004 #include "filterinputstreambuf.h" 00005 00006 namespace zipios { 00007 00008 FilterInputStreambuf::FilterInputStreambuf( streambuf *inbuf, bool del_inbuf ) 00009 : _inbuf( inbuf), 00010 _del_inbuf( del_inbuf ) 00011 { 00012 if ( _inbuf == NULL ) { 00013 // throw an exception 00014 } 00015 } 00016 00017 00018 FilterInputStreambuf::~FilterInputStreambuf() { 00019 if ( _del_inbuf ) 00020 delete _inbuf ; 00021 } 00022 00023 00024 } // namespace 00025 00030 /* 00031 Zipios++ - a small C++ library that provides easy access to .zip files. 00032 Copyright (C) 2000 Thomas Søndergaard 00033 00034 This library is free software; you can redistribute it and/or 00035 modify it under the terms of the GNU Lesser General Public 00036 License as published by the Free Software Foundation; either 00037 version 2 of the License, or (at your option) any later version. 00038 00039 This library is distributed in the hope that it will be useful, 00040 but WITHOUT ANY WARRANTY; without even the implied warranty of 00041 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00042 Lesser General Public License for more details. 00043 00044 You should have received a copy of the GNU Lesser General Public 00045 License along with this library; if not, write to the Free Software 00046 Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 00047 */