#include <ZipFileHeader.h>
Public Member Functions | |
WORD | GetFileNameSize () const |
WORD | GetCommentSize () const |
WORD | GetExtraFieldSize () const |
CZipString | GetFileName () const |
bool | SetFileName (LPCTSTR lpszFileName) |
Set the filename. | |
CZipString | GetComment () const |
bool | SetComment (LPCTSTR lpszComment) |
Set the file comment. | |
bool | IsDataDescr () const |
DWORD | GetEffComprSize () |
bool | CompressionEfficient () |
float | GetCompressionRatio () |
bool | IsEncrypted () const |
void | SetTime (const time_t &ttime) |
Set m_uModDate, m_uModTime (file modification time). | |
time_t | GetTime () const |
DWORD | GetSize () const |
DWORD | GetLocalSize () const |
int | GetSystemCompatibility () const |
DWORD | GetSystemAttr () const |
DWORD | GetOriginalAttributes () const |
bool | IsDirectory () const |
Public Attributes | |
char | m_szSignature [4] |
central file header signature | |
WORD | m_uVersionMadeBy |
version made by and system compatibility | |
WORD | m_uVersionNeeded |
version needed to extract | |
WORD | m_uFlag |
general purpose bit flag | |
WORD | m_uMethod |
compression method | |
WORD | m_uModTime |
last mod file time | |
WORD | m_uModDate |
last mod file date | |
DWORD | m_uCrc32 |
crc-32 | |
DWORD | m_uComprSize |
compressed size | |
DWORD | m_uUncomprSize |
uncompressed size | |
WORD | m_uDiskStart |
disk number start | |
WORD | m_uInternalAttr |
internal file attributes | |
DWORD | m_uOffset |
relative offset of local header | |
CZipAutoBuffer | m_pExtraField |
extra field (variable size) | |
Static Public Attributes | |
static char | m_gszSignature [] |
central file header signature | |
static char | m_gszLocalSignature [] |
local file header signature | |
Protected Member Functions | |
DWORD | GetLocalSize (bool bReal) const |
void | SetSystemCompatibility (int iSystemID) |
Set the system compatibility of the file. | |
void | SetSystemAttr (DWORD uAttr) |
Set the system attributes if you wish to set the attributes of this structure use CZipArchive::SetFileHeaderAttr(). | |
void | SetVersion (WORD uVersion) |
Set the version made by number. | |
void | GetCrcAndSizes (char *pBuffer) const |
Fill the buffer with the current values of crc and compressed and uncompressed sizes of the file. | |
bool | CheckCrcAndSizes (char *pBuf) const |
Check whether the actual values of crc and compressed and uncompressed sizes of the file are the same as defined in the file header. | |
bool | PrepareData (int iLevel, bool bSpan, bool bEncrypted) |
Prepare the data for the class while adding a new file. | |
void | WriteLocal (CZipStorage &storage) |
Write the local file header to the storage. | |
bool | Read (CZipStorage *pStorage) |
Read the file header from the central directory record from pStorage. | |
bool | ReadLocal (CZipStorage *pStorage) |
Read the local file header from pStorage and check for consistency. | |
DWORD | Write (CZipStorage *pStorage) |
Write the file header to pStorage. | |
Protected Attributes | |
DWORD | m_uExternalAttr |
external file attributes | |
WORD | m_uLocalFileNameSize |
local filename length | |
WORD | m_uLocalExtraFieldSize |
local extra field length | |
CZipAutoBuffer | m_pszFileName |
a filename | |
CZipAutoBuffer | m_pszComment |
a file comment | |
Friends | |
class | CZipCentralDir |
class | CZipArchive |
void | FileNameUpdate (CZipFileHeader &, bool, bool) |
Convert the filename of the file inside archive. |
Modify all the class attributes BEFORE adding a file to and archive ( using CZipArchive::OpenNewFile ). It is not possible to modify the data of the existing files in the archive (it would mean updating all the information in the local headers and the offsets would be changed as well when the filename would changed its size)
Definition at line 45 of file ZipFileHeader.h.
|
Check whether the actual values of crc and compressed and uncompressed sizes of the file are the same as defined in the file header.
|
|
Definition at line 126 of file ZipFileHeader.h. |
|
|
|
Definition at line 70 of file ZipFileHeader.h. |
|
Definition at line 137 of file ZipFileHeader.h. |
|
Definition at line 118 of file ZipFileHeader.h. |
|
Definition at line 75 of file ZipFileHeader.h. |
|
Referenced by CZipCentralDir::GetProperHeaderFileName(). |
|
Definition at line 65 of file ZipFileHeader.h. |
|
|
|
Definition at line 196 of file ZipFileHeader.h. |
|
Definition at line 231 of file ZipFileHeader.h. |
|
|
|
|
|
Definition at line 212 of file ZipFileHeader.h. |
|
|
|
Definition at line 111 of file ZipFileHeader.h. |
|
|
|
Definition at line 146 of file ZipFileHeader.h. |
|
Prepare the data for the class while adding a new file. Called by CZipArchive::OpenNewFile
|
|
Read the file header from the central directory record from pStorage.
|
|
Read the local file header from pStorage and check for consistency.
|
|
Set the file comment.
|
|
Set the filename.
|
|
Set the system attributes if you wish to set the attributes of this structure use CZipArchive::SetFileHeaderAttr().
|
|
Set the system compatibility of the file.
Definition at line 258 of file ZipFileHeader.h. |
|
Set m_uModDate, m_uModTime (file modification time). If the ttime is not correct, the date defaults to January 1, 1980
|
|
Write the file header to pStorage.
|
|
Write the local file header to the storage. The filename and extra field are copied from the central directory.
|
|
Convert the filename of the file inside archive. This conversion may not change the size of the filename, otherwise an error may occur in CZipFileHeader::ReadLocal while comparing the filename sizes.
|