123456789101112131415161718192021222324 |
- #pragma once
- #include <string>
- #include "IOBase.h"
- #include "ZLib/unzip.h"
- class UZipFile:public CIOBase
- {
- public:
- UZipFile(void);
- ~UZipFile(void);
- bool OpenZip();
- bool GetNextEntry(std::string & strFileName);
- int Read(void * buffer,int bufferSize);
- void CloseZip( );
- bool HasMoreEntry(){return m_nCurrentEntryNum<m_nEntryNum;}
- protected:
- void * uf;
- unsigned long long int m_nCurrentEntryNum;
- unsigned long long int m_nEntryNum;
- bool m_bIsCurrentFileOpened;
- bool m_bIsZipOpened;
- };
|