📄 izipfile.h
字号:
//------------------------------------------------------------------------------
// (c) 2001 Gottfried Chen
//------------------------------------------------------------------------------
#ifndef IZIPFILE_H
#define IZIPFILE_H
#include "unzip.h"
namespace zip
{
class izipfile
{
public:
// Con/Destruction
izipfile(const char* fileName);
// Ownership is reassigned on copying. I.e.: <rhs> will be invalid afterwards.
izipfile(izipfile& rhs);
izipfile& operator=(izipfile& rhs);
~izipfile();
// Close the .zip file.
bool close();
// Was opening the file succesful?
bool isOk() const;
// Open/Close a file in the .zip. Only one file can be open at
// a time.
bool openInZip(const char* fileName);
bool closeInZip();
// Returns number of read bytes or a negative number on error.
int read(void* buffer, unsigned int size);
private:
bool fileInZipIsOpen() const;
unzFile mHandle;
bool mFileInZipIsOpen;
};
} // namespace zip
#endif // IZIPFILE_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -