Main Page   Class Hierarchy   Compound List   File List   Compound Members  

zipinputstream.h

Go to the documentation of this file.
00001 #ifndef ZIPINPUTSTREAM_H
00002 #define ZIPINPUTSTREAM_H
00003 
00004 #include "zipios++/zipios-config.h"
00005 
00006 #include "zipios++/meta-iostreams.h"
00007 #include <string>
00008 
00009 #include "zipios++/ziphead.h"
00010 #include "zipios++/zipinputstreambuf.h"
00011 
00012 namespace zipios {
00013 
00014 using std::ifstream ;
00015 
00020 class ZipInputStream : public istream {
00021 public:
00022 
00026   explicit ZipInputStream( istream &is, streampos pos = 0 ) ;
00027 
00031   explicit ZipInputStream( const string &filename, streampos pos = 0 ) ;
00032   
00033   int available() ;
00036   void closeEntry() ;
00037 
00039   void close() ;
00040 
00041 //    ZipLocalEntry *createZipCDirEntry( const string &name ) ;
00042 
00049   ConstEntryPointer getNextEntry() ;
00050 
00052   virtual ~ZipInputStream() ;
00053 
00054 private:
00055   ifstream *ifs ;
00056   ZipInputStreambuf *izf ;
00057 
00059   ZipInputStream( const ZipInputStream &src ) ;
00060 
00062   const ZipInputStream &operator= ( const ZipInputStream &src ) ;
00063 
00064 };
00065  
00066 } // namespace.
00067 
00068 #endif
00069 
00074 /*
00075   Zipios++ - a small C++ library that provides easy access to .zip files.
00076   Copyright (C) 2000  Thomas Søndergaard
00077   
00078   This library is free software; you can redistribute it and/or
00079   modify it under the terms of the GNU Lesser General Public
00080   License as published by the Free Software Foundation; either
00081   version 2 of the License, or (at your option) any later version.
00082   
00083   This library is distributed in the hope that it will be useful,
00084   but WITHOUT ANY WARRANTY; without even the implied warranty of
00085   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00086   Lesser General Public License for more details.
00087   
00088   You should have received a copy of the GNU Lesser General Public
00089   License along with this library; if not, write to the Free Software
00090   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
00091 */

Generated at Tue Aug 14 20:39:26 2001 for Zipios++ by doxygen1.2.0 written by Dimitri van Heesch, © 1997-2000