ozipfile.h
来自「这是一个兼容C++标准的IO流接口」· C头文件 代码 · 共 43 行
H
43 行
//------------------------------------------------------------------------------
// (c) 2001 Gottfried Chen
//------------------------------------------------------------------------------
#ifndef OZIPFILE_H
#define OZIPFILE_H
#include "zip.h"
namespace zip
{
class ozipfile
{
public:
// Con/Destruction
ozipfile(const char* fileName);
// Ownership is reassigned on copying. I.e.: <rhs> will be invalid afterwards.
ozipfile(ozipfile& rhs);
ozipfile& operator=(ozipfile& rhs);
~ozipfile();
// Close the .zip file.
bool close();
// Returns true if the .zip is open and ok.
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 false if an error occured.
bool write(void* buffer, unsigned int size);
private:
zipFile mHandle;
bool mFileInZipIsOpen;
};
} // namespace zip
#endif OZIPFILE_H
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?