Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
GrayLib::cZipFileEntry1 Class Reference

#include <cZipDir.h>

Inheritance diagram for GrayLib::cZipFileEntry1:
GrayLib::cZipFileEntry0 GrayLib::cZipData

Public Types

enum  SYSTEM_TYPE {
  SYSTEM_MSDOS , SYSTEM_AMIGA , SYSTEM_OPENVMS , SYSTEM_UNIX ,
  SYSTEM_VM_CMS , SYSTEM_ATARI_ST , SYSTEM_OS2_HPFS , SYSTEM_MACINTOSH ,
  SYSTEM_Z_SYSTEM , SYSTEM_CPM , SYSTEM_WINDOWS_NTFS , SYSTEM_MVS ,
  SYSTEM_VSE , SYSTEM_ACORN_RISC , SYSTEM_VFAT , SYSTEM_ALTERNATE_MVS ,
  SYSTEM_BEOS , SYSTEM_TANDEM , SYSTEM_OS_400
}
 
- Public Types inherited from GrayLib::cZipFileEntry0
enum  ZFLG_TYPE {
  ZFLG_CRYPT = 0x01 , ZFLG_COMPLVL1 = 0x02 , ZFLG_COMPLVL2 = 0x04 , ZFLG_SUMS_FOLLOW = 0x08 ,
  ZFLG_ENHANCED = 0x0010 , ZFLG_PATCH = 0x0020 , ZFLG_STRONG_ENC = 0x0040 , ZFLG_UNUSED = 0x0F80 ,
  ZFLG_RESERVED = 0xF000
}
 

Public Member Functions

 cZipFileEntry1 ()
 
 cZipFileEntry1 (const cZipFileEntry1 &cp)
 
 ~cZipFileEntry1 ()
 
bool isValidParams () const
 
bool isMatch (const cZipFileEntry0 &entry) const
 
cZipFileEntry1operator= (const cZipFileEntry1 &cp)
 
size_t get_SizeCH () const
 
bool isAttrDir () const
 
void SetZeroData ()
 
void SetCopy (const cZipFileEntry1 &h)
 
HRESULT ReadHeader1 (cStreamInput &s)
 
HRESULT WriteHeader1 (cStreamOutput &s) const
 
- Public Member Functions inherited from GrayLib::cZipFileEntry0
 cZipFileEntry0 ()
 
 ~cZipFileEntry0 ()
 
void SetZeroData ()
 
size_t get_SizeLH () const
 
bool isValidParams () const
 
bool ValidateParams ()
 
cStringF get_Name () const
 
void put_FileName (cStringF sFileName)
 
void SetCopy (const cZipFileEntry0 &h)
 
HRESULT ReadHeader0 (cStreamInput &s, bool bLH)
 
HRESULT WriteHeader0U (cStreamOutput &s) const
 
HRESULT WriteHeader0 (cStreamOutput &s, bool bLH) const
 
void AddExUT (const cZipDataExUT *pEx)
 
cZipDataExUTFindExUT () const
 
cTimeInt get_DosDateAsTime () const
 
cTimeInt get_TimeCreated () const
 
cTimeInt get_TimeModified () const
 
void SetFileTimes (cTimeInt tCreated, cTimeInt tModified)
 
ZIP_COMPLEV_TYPE get_CompLevel () const
 
bool put_CompLevel (ZIP_COMPLEV_TYPE nCompLevel)
 

Public Attributes

BYTE m_bVersion
 version made by. 0=any. 20 = PKWARE 2.0 More...
 
SYSTEM_TYPE m_eSystemMadeBy
 0 = SYSTEM_MSDOS More...
 
cString m_sComment
 file entry comment. WORD comment length More...
 
WORD m_wDisk_num_start
 disk number start More...
 
WORD m_wDataTypeGuess
 best guess about the data type: Z_BINARY or Z_ASCII. zstream.data_type. More...
 
UINT32 m_dwFileAttrFlags
 external file attributes. _WIN32 ATTRIBUTE flags. FILEATTR_Directory = 0x20 More...
 
ZIP_SIZE_t m_nOffsetLocal
 offset of this LH[X] from LH[0]. (4 bytes = ZIP_OFFSET_t) More...
 
- Public Attributes inherited from GrayLib::cZipFileEntry0
WORD m_wVersionNeeded
 version needed to extract. 20 = PKUNZIP 2.0 More...
 
WORD m_wZFlags
 general purpose bit flags. ZFLG_TYPE, ZFLG_CRYPT More...
 
COMPMETHOD_TYPE m_eCompressionMethod
 compression method. none=0, Z_DEFLATED=8, BZIP2=12, PPMd=98. More...
 
UINT32 m_dwDosDate
 last modified file date in DOS format. bit packed year,month,day,hour,min,second (accurate to 2 second). unknown time zone. assumed local DST More...
 
UINT32 m_dwCRC
 CRC-32 for the uncompressed file. More...
 
ZIP_SIZE_t m_dwCompressedSize
 compressed size bytes. number of bytes actually stored. plus crypt header size. More...
 
ZIP_SIZE_t m_dwUncompressedSize
 uncompressed size bytes. More...
 
WORD m_wSize_FileName
 MUST match m_sFileName.GetLength() More...
 
WORD m_wSize_Extra
 size of m_Extra More...
 
cStringF m_sFileName
 name relative to some unknown root. ending in \ for directory. More...
 
cHeapBlock m_Extra
 extra field length. may contain UT. NOTE: NOT the same for LH and CH! More...
 

Additional Inherited Members

- Static Public Attributes inherited from GrayLib::cZipFileEntry0
static const int k_nFileNameMax = 256
 
static const int k_nOffsetU = 14
 
- Protected Types inherited from GrayLib::cZipData
enum  COMPMETHOD_TYPE {
  COMPMETHOD_Store = 0 , COMPMETHOD_OLD_SHRINK , COMPMETHOD_OLD_REDUCE1 , COMPMETHOD_OLD_REDUCE2 ,
  COMPMETHOD_OLD_REDUCE3 , COMPMETHOD_OLD_REDUCE4 , COMPMETHOD_OLD_IMPLODE , COMPMETHOD_OLD_TOKENIZE ,
  COMPMETHOD_Deflate = 8 , COMPMETHOD_Deflate64 = 9 , COMPMETHOD_BZIP2 = 12 , COMPMETHOD_JPEG = 96 ,
  COMPMETHOD_WavPack = 97 , COMPMETHOD_PPMd = 98
}
 
- Static Protected Member Functions inherited from GrayLib::cZipData
static HRESULT GRAYCALL ReadU16 (cStreamInput &stmIn, WORD *pX)
 
static HRESULT GRAYCALL ReadU32 (cStreamInput &stmIn, UINT32 *pX)
 
static HRESULT WriteU16 (cStreamOutput &s, WORD x)
 
static HRESULT WriteU32 (cStreamOutput &s, UINT32 x)
 

Detailed Description

directory information about a file in the zip file. Entry for the "CentralHeader" zip directory. Preceded by ZIP_MAGIC_DIRENTRY contains some duplicate info from the "Local Header" but m_Extra data may differ. Directories are empty stubs that have names ending in .

Member Enumeration Documentation

◆ SYSTEM_TYPE

Pkware's system type values. Note that Info-zip disagree on some of them, most notably NTFS. Similar to FILESYS_TYPE

Enumerator
SYSTEM_MSDOS 

like FILESYS_FAT

SYSTEM_AMIGA 
SYSTEM_OPENVMS 

Unix like.

SYSTEM_UNIX 

like FILESYS_NFS on Linux

SYSTEM_VM_CMS 
SYSTEM_ATARI_ST 

Unix like.

SYSTEM_OS2_HPFS 
SYSTEM_MACINTOSH 
SYSTEM_Z_SYSTEM 
SYSTEM_CPM 
SYSTEM_WINDOWS_NTFS 

like FILESYS_NTFS

SYSTEM_MVS 
SYSTEM_VSE 
SYSTEM_ACORN_RISC 

Unix like.

SYSTEM_VFAT 

like FILESYS_FAT32

SYSTEM_ALTERNATE_MVS 
SYSTEM_BEOS 

Unix like.

SYSTEM_TANDEM 

Unix like.

SYSTEM_OS_400 

Constructor & Destructor Documentation

◆ cZipFileEntry1() [1/2]

GrayLib::cZipFileEntry1::cZipFileEntry1 ( )
inline

◆ cZipFileEntry1() [2/2]

GrayLib::cZipFileEntry1::cZipFileEntry1 ( const cZipFileEntry1 cp)
inline

◆ ~cZipFileEntry1()

GrayLib::cZipFileEntry1::~cZipFileEntry1 ( )
inline

Member Function Documentation

◆ get_SizeCH()

size_t GrayLib::cZipFileEntry1::get_SizeCH ( ) const
inline

includes size for magic number.

◆ isAttrDir()

bool GrayLib::cZipFileEntry1::isAttrDir ( ) const

◆ isMatch()

bool GrayLib::cZipFileEntry1::isMatch ( const cZipFileEntry0 entry) const

◆ isValidParams()

bool GrayLib::cZipFileEntry1::isValidParams ( ) const

◆ operator=()

cZipFileEntry1& GrayLib::cZipFileEntry1::operator= ( const cZipFileEntry1 cp)
inline

◆ ReadHeader1()

HRESULT GrayLib::cZipFileEntry1::ReadHeader1 ( cStreamInput s)

◆ SetCopy()

void GrayLib::cZipFileEntry1::SetCopy ( const cZipFileEntry1 h)

◆ SetZeroData()

void GrayLib::cZipFileEntry1::SetZeroData ( )

◆ WriteHeader1()

HRESULT GrayLib::cZipFileEntry1::WriteHeader1 ( cStreamOutput s) const

Member Data Documentation

◆ m_bVersion

BYTE GrayLib::cZipFileEntry1::m_bVersion

version made by. 0=any. 20 = PKWARE 2.0

◆ m_dwFileAttrFlags

UINT32 GrayLib::cZipFileEntry1::m_dwFileAttrFlags

external file attributes. _WIN32 ATTRIBUTE flags. FILEATTR_Directory = 0x20

◆ m_eSystemMadeBy

SYSTEM_TYPE GrayLib::cZipFileEntry1::m_eSystemMadeBy

0 = SYSTEM_MSDOS

◆ m_nOffsetLocal

ZIP_SIZE_t GrayLib::cZipFileEntry1::m_nOffsetLocal

offset of this LH[X] from LH[0]. (4 bytes = ZIP_OFFSET_t)

◆ m_sComment

cString GrayLib::cZipFileEntry1::m_sComment

file entry comment. WORD comment length

◆ m_wDataTypeGuess

WORD GrayLib::cZipFileEntry1::m_wDataTypeGuess

best guess about the data type: Z_BINARY or Z_ASCII. zstream.data_type.

◆ m_wDisk_num_start

WORD GrayLib::cZipFileEntry1::m_wDisk_num_start

disk number start


The documentation for this class was generated from the following file: