00001 #ifndef ZIPINPUTSTREAMBUF_H
00002 #define ZIPINPUTSTREAMBUF_H
00003
00004 #include "zipios++/zipios-config.h"
00005
00006 #include <vector>
00007
00008 #include <zlib.h>
00009
00010 #include "zipios++/fcoll.h"
00011 #include "zipios++/inflateinputstreambuf.h"
00012 #include "zipios++/ziphead.h"
00013
00014 namespace zipios {
00015
00018 class ZipInputStreambuf : public InflateInputStreambuf {
00019 public:
00027 explicit ZipInputStreambuf( streambuf *inbuf, int s_pos = -1, bool del_inbuf = false ) ;
00028
00031 void closeEntry() ;
00033 void close() ;
00034
00040 ConstEntryPointer getNextEntry() ;
00041
00043 virtual ~ZipInputStreambuf() ;
00044 protected:
00045 virtual int underflow() ;
00046 private:
00047 bool _open_entry ;
00048 ZipLocalEntry _curr_entry ;
00049 int _data_start ;
00050 int _remain ;
00051
00052
00054 ZipInputStreambuf( const ZipInputStreambuf &src ) ;
00055
00057 const ZipInputStreambuf &operator= ( const ZipInputStreambuf &src ) ;
00058
00059 };
00060
00061
00062 }
00063
00064
00065
00066 #endif
00067
00072 00073 00074 00075 00076 00077 00078 00079 00080 00081 00082 00083 00084 00085 00086 00087 00088 00089