fastdo  0.6.8
winux::Zip类 参考

ZIP压缩 更多...

#include <compress.hpp>

Public 成员函数

 Zip ()
 
 Zip (String const &filename, char const *password=NULL)
 
 Zip (void *buf, uint32 size, char const *password=NULL)
 
 ~Zip ()
 
bool create (String const &filename, char const *password=NULL)
 
bool create (void *buf, uint32 size, char const *password=NULL)
 
ZRESULT close ()
 
ZRESULT addFile (String const &dstPathInZip, String const &srcFilename)
 
ZRESULT addFile (String const &dstPathInZip, void *src, uint32 size)
 
ZRESULT addFolder (String const &dstPathInZip)
 
void zipAll (String const &dirPath)
 
ZRESULT getMemory (void **buf, unsigned long *size)
 

静态 Public 成员函数

static String Message (ZRESULT code=0x00000001)
 

详细描述

ZIP压缩

在文件 compress.hpp43 行定义.

构造及析构函数说明

winux::Zip::Zip ( )
winux::Zip::Zip ( String const &  filename,
char const *  password = NULL 
)
winux::Zip::Zip ( void *  buf,
uint32  size,
char const *  password = NULL 
)
winux::Zip::~Zip ( )

成员函数说明

ZRESULT winux::Zip::addFile ( String const &  dstPathInZip,
String const &  srcFilename 
)
ZRESULT winux::Zip::addFile ( String const &  dstPathInZip,
void *  src,
uint32  size 
)
ZRESULT winux::Zip::addFolder ( String const &  dstPathInZip)
ZRESULT winux::Zip::close ( )
bool winux::Zip::create ( String const &  filename,
char const *  password = NULL 
)
bool winux::Zip::create ( void *  buf,
uint32  size,
char const *  password = NULL 
)
ZRESULT winux::Zip::getMemory ( void **  buf,
unsigned long *  size 
)
static String winux::Zip::Message ( ZRESULT  code = 0x00000001)
static
void winux::Zip::zipAll ( String const &  dirPath)

该类的文档由以下文件生成: