![]() |
Gray C++ Libraries
0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
|
#include <cZipReader.h>
Public Member Functions | |
| cZipReader () | |
| virtual | ~cZipReader () |
| HRESULT | OpenUnZip (cStreamInput &rInp) |
| HRESULT | UnzipTo (const FILECHAR_t *pszDestFolder, ZIP_CTRL_TYPE bZCtrl=0, const char *pszPassword=nullptr, IStreamProgressCallback *pProgress=nullptr) |
| int | get_FileCount () const |
| HRESULT | GetFileInfo (cZipFileEntry1 &info) const |
| HRESULT | GotoFileNum (ITERATE_t nFile) |
| HRESULT | GotoFileInfo (ITERATE_t nFile, cZipFileEntry1 &info) |
| HRESULT | GotoFileFirstExt (const FILECHAR_t *pszExt=nullptr) |
| HRESULT | GotoFileNextExt (const FILECHAR_t *pszExt=nullptr) |
| HRESULT | GotoFileFind (const FILECHAR_t *pszFileName, ZIP_CTRL_TYPE bZCtrl=ZIP_CTRL_FLAT) |
| HRESULT | UnzipFile (const FILECHAR_t *pszDestFolder=nullptr, ZIP_CTRL_TYPE bZCtrl=0, const char *pszPassword=nullptr) |
| UNITTEST_FRIEND (cZipReader) | |
Static Public Member Functions | |
| static HRESULT GRAYCALL | Unzip (const FILECHAR_t *pszZipFilePath, const FILECHAR_t *pszDestFolder=nullptr, ZIP_CTRL_TYPE bZCtrl=0, const char *pszPassword=nullptr, IStreamProgressCallback *pProgress=nullptr) |
Public Attributes | |
| cZipDir | m_dir |
| central directory header. More... | |
| ITERATE_t | m_nFileNum |
| number of the current file in the zip file directory More... | |
| ZIP_OFFSET_t | m_nOffsetCHEntry |
| position of the current file in the central directory. relative to get_PosLH0() More... | |
| cZipFileEntry1 | m_Entry |
| central header data for the current file More... | |
Protected Member Functions | |
| HRESULT | GoToFileFirst () |
| HRESULT | GoToFileNext () |
| HRESULT | UnzipFileCurrent (cStreamOutput &so, const char *pszPassword=nullptr) const |
| HRESULT | UnzipFileCurrent (cStringF sPathDest, const char *pszPassword=nullptr) const |
Protected Attributes | |
| cStreamInput * | m_pInp |
| Zip file I'm reading. More... | |
Manage decompressing files from a ZIP format file.
| GrayLib::cZipReader::cZipReader | ( | ) |
|
virtual |
| int GrayLib::cZipReader::get_FileCount | ( | ) | const |
| HRESULT GrayLib::cZipReader::GetFileInfo | ( | cZipFileEntry1 & | info | ) | const |
| HRESULT GrayLib::cZipReader::GotoFileFind | ( | const FILECHAR_t * | pszFileName, |
| ZIP_CTRL_TYPE | bZCtrl = ZIP_CTRL_FLAT |
||
| ) |
|
protected |
| HRESULT GrayLib::cZipReader::GotoFileFirstExt | ( | const FILECHAR_t * | pszExt = nullptr | ) |
| HRESULT GrayLib::cZipReader::GotoFileInfo | ( | ITERATE_t | nFile, |
| cZipFileEntry1 & | info | ||
| ) |
|
protected |
| HRESULT GrayLib::cZipReader::GotoFileNextExt | ( | const FILECHAR_t * | pszExt = nullptr | ) |
| HRESULT GrayLib::cZipReader::OpenUnZip | ( | cStreamInput & | rInp | ) |
| GrayLib::cZipReader::UNITTEST_FRIEND | ( | cZipReader | ) |
|
static |
| HRESULT GrayLib::cZipReader::UnzipFile | ( | const FILECHAR_t * | pszDestFolder = nullptr, |
| ZIP_CTRL_TYPE | bZCtrl = 0, |
||
| const char * | pszPassword = nullptr |
||
| ) |
|
protected |
|
protected |
| HRESULT GrayLib::cZipReader::UnzipTo | ( | const FILECHAR_t * | pszDestFolder, |
| ZIP_CTRL_TYPE | bZCtrl = 0, |
||
| const char * | pszPassword = nullptr, |
||
| IStreamProgressCallback * | pProgress = nullptr |
||
| ) |
| cZipDir GrayLib::cZipReader::m_dir |
central directory header.
| cZipFileEntry1 GrayLib::cZipReader::m_Entry |
central header data for the current file
| ITERATE_t GrayLib::cZipReader::m_nFileNum |
number of the current file in the zip file directory
| ZIP_OFFSET_t GrayLib::cZipReader::m_nOffsetCHEntry |
position of the current file in the central directory. relative to get_PosLH0()
|
protected |
Zip file I'm reading.