fastdo  0.6.8
winux::Unzip类 参考

ZIP解压缩 更多...

#include <compress.hpp>

struct  ZipEntry
 

Public 类型

typedef struct winux::Unzip::ZipEntry ZipEntry
 

Public 成员函数

 Unzip ()
 
 Unzip (String const &filename, char const *password=NULL)
 
 Unzip (void *zipbuf, uint32 size, char const *password=NULL)
 
 ~Unzip ()
 
bool open (String const &filename, char const *password=NULL)
 
bool open (void *zipbuf, uint32 size, char const *password=NULL)
 
ZRESULT close ()
 
int getEntriesCount () const
 
ZRESULT getEntry (int index, ZipEntry *entry)
 
ZRESULT findEntry (String const &name, bool caseInsensitive, int *index, ZipEntry *entry)
 
ZRESULT unzipEntry (int index, String const &outFilename)
 
ZRESULT unzipEntry (int index, void *buf, uint32 size)
 
void unzipAll (String const &dirPath="")
 
ZRESULT setUnzipBaseDir (String const &dirPath)
 

静态 Public 成员函数

static String Message (ZRESULT code=0x00000001)
 

详细描述

ZIP解压缩

在文件 compress.hpp72 行定义.

成员类型定义说明

构造及析构函数说明

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

成员函数说明

ZRESULT winux::Unzip::close ( )
ZRESULT winux::Unzip::findEntry ( String const &  name,
bool  caseInsensitive,
int *  index,
ZipEntry entry 
)
int winux::Unzip::getEntriesCount ( ) const
ZRESULT winux::Unzip::getEntry ( int  index,
ZipEntry entry 
)
static String winux::Unzip::Message ( ZRESULT  code = 0x00000001)
static
bool winux::Unzip::open ( String const &  filename,
char const *  password = NULL 
)
bool winux::Unzip::open ( void *  zipbuf,
uint32  size,
char const *  password = NULL 
)
ZRESULT winux::Unzip::setUnzipBaseDir ( String const &  dirPath)
void winux::Unzip::unzipAll ( String const &  dirPath = "")
ZRESULT winux::Unzip::unzipEntry ( int  index,
String const &  outFilename 
)
ZRESULT winux::Unzip::unzipEntry ( int  index,
void *  buf,
uint32  size 
)

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