1234567891011121314151617181920 |
- #pragma once
- #include <string>
- #include <codecvt>
- #include "IOBase.h"
- class CZipFile:public CIOBase
- {
- public:
- CZipFile(void);
- ~CZipFile(void);
- public:
- void OpenZip();
- bool PutNextEntry(std::string lpszFileNameInZip, bool bUtf8 = false);
- bool Write(void * data,int dataLen);
- void CloseZip();
- private:
- void * zf;//zip信息
- bool m_IsZipOpened;
- bool m_file_inzip_open;//标记是否正在写入一个文件
- };
|