UZipFile.h 497 B

123456789101112131415161718192021222324
  1. #pragma once
  2. #include <string>
  3. #include "IOBase.h"
  4. #include "ZLib/unzip.h"
  5. class UZipFile:public CIOBase
  6. {
  7. public:
  8. UZipFile(void);
  9. ~UZipFile(void);
  10. bool OpenZip();
  11. bool GetNextEntry(std::string & strFileName);
  12. int Read(void * buffer,int bufferSize);
  13. void CloseZip( );
  14. bool HasMoreEntry(){return m_nCurrentEntryNum<m_nEntryNum;}
  15. protected:
  16. void * uf;
  17. unsigned long long int m_nCurrentEntryNum;
  18. unsigned long long int m_nEntryNum;
  19. bool m_bIsCurrentFileOpened;
  20. bool m_bIsZipOpened;
  21. };