ZipFile.h 403 B

1234567891011121314151617181920
  1. #pragma once
  2. #include <string>
  3. #include <codecvt>
  4. #include "IOBase.h"
  5. class CZipFile:public CIOBase
  6. {
  7. public:
  8. CZipFile(void);
  9. ~CZipFile(void);
  10. public:
  11. void OpenZip();
  12. bool PutNextEntry(std::string lpszFileNameInZip, bool bUtf8 = false);
  13. bool Write(void * data,int dataLen);
  14. void CloseZip();
  15. private:
  16. void * zf;//zip信息
  17. bool m_IsZipOpened;
  18. bool m_file_inzip_open;//标记是否正在写入一个文件
  19. };