Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

CZIPFile Class Reference

#include <ZIPFile.h>

List of all members.

Public Member Functions

 CZIPFile (HANDLE hAttach=INVALID_HANDLE_VALUE)
 ~CZIPFile ()
BOOL Open (LPCTSTR pszFile)
BOOL Attach (HANDLE hFile)
BOOL IsOpen () const
void Close ()
int GetCount () const
FileGetFile (int nFile) const
FileGetFile (LPCTSTR pszFile, BOOL bPartial=FALSE) const

Protected Member Functions

BOOL LocateCentralDirectory ()
BOOL ParseCentralDirectory (BYTE *pDirectory, DWORD nDirectory)
BOOL SeekToFile (File *pFile)

Protected Attributes

BOOL m_bAttach
HANDLE m_hFile
Filem_pFile
int m_nFile

Classes

class  File


Constructor & Destructor Documentation

CZIPFile::CZIPFile HANDLE  hAttach = INVALID_HANDLE_VALUE  ) 
 

Definition at line 31 of file ZIPFile.cpp.

References Attach(), m_bAttach, m_hFile, m_nFile, m_pFile, and NULL.

CZIPFile::~CZIPFile  ) 
 

Definition at line 41 of file ZIPFile.cpp.

References Close().


Member Function Documentation

BOOL CZIPFile::Attach HANDLE  hFile  ) 
 

Definition at line 74 of file ZIPFile.cpp.

References Close(), LocateCentralDirectory(), m_bAttach, and m_hFile.

Referenced by CCollectionFile::Attach(), and CZIPFile().

void CZIPFile::Close  ) 
 

Definition at line 105 of file ZIPFile.cpp.

References m_bAttach, m_hFile, m_nFile, m_pFile, and NULL.

Referenced by Attach(), Open(), and ~CZIPFile().

int CZIPFile::GetCount  )  const
 

Definition at line 121 of file ZIPFile.cpp.

References m_nFile.

CZIPFile::File * CZIPFile::GetFile LPCTSTR  pszFile,
BOOL  bPartial = FALSE
const
 

Definition at line 137 of file ZIPFile.cpp.

References m_nFile, m_pFile, CZIPFile::File::m_sName, and NULL.

CZIPFile::File * CZIPFile::GetFile int  nFile  )  const
 

Definition at line 129 of file ZIPFile.cpp.

References m_nFile, m_pFile, and NULL.

Referenced by CCollectionFile::LoadManifest(), CIEProtocol::OnRequestRAZACOL(), and CIEProtocol::SetCollection().

BOOL CZIPFile::IsOpen  )  const
 

Definition at line 97 of file ZIPFile.cpp.

References m_hFile.

Referenced by CIEProtocol::OnRequestRAZACOL().

BOOL CZIPFile::LocateCentralDirectory  )  [protected]
 

Definition at line 175 of file ZIPFile.cpp.

References m_hFile, m_nFile, m_pFile, ZIP_DIRECTORY_LOC::nDirectoryOffset, ZIP_DIRECTORY_LOC::nDirectorySize, ZIP_DIRECTORY_LOC::nSignature, ZIP_DIRECTORY_LOC::nTotalFiles, NULL, and ParseCentralDirectory().

Referenced by Attach(), and Open().

BOOL CZIPFile::Open LPCTSTR  pszFile  ) 
 

Definition at line 49 of file ZIPFile.cpp.

References Close(), LocateCentralDirectory(), m_bAttach, m_hFile, and NULL.

Referenced by CCollectionFile::Open(), and CIEProtocol::SetCollection().

BOOL CZIPFile::ParseCentralDirectory BYTE *  pDirectory,
DWORD  nDirectory
[protected]
 

Definition at line 252 of file ZIPFile.cpp.

References CZIPFile::File::m_nCompressedSize, CZIPFile::File::m_nCompression, m_nFile, CZIPFile::File::m_nLocalOffset, CZIPFile::File::m_nSize, m_pFile, CZIPFile::File::m_pZIP, and CZIPFile::File::m_sName.

Referenced by LocateCentralDirectory().

BOOL CZIPFile::SeekToFile File pFile  )  [protected]
 

Definition at line 310 of file ZIPFile.cpp.

References m_hFile, CZIPFile::File::m_nLocalOffset, CZIPFile::File::m_pZIP, NULL, and Z_DEFLATED.

Referenced by CZIPFile::File::PrepareToDecompress().


Member Data Documentation

BOOL CZIPFile::m_bAttach [protected]
 

Definition at line 57 of file ZIPFile.h.

Referenced by Attach(), Close(), CZIPFile(), and Open().

HANDLE CZIPFile::m_hFile [protected]
 

Definition at line 58 of file ZIPFile.h.

Referenced by Attach(), Close(), CZIPFile(), CZIPFile::File::Decompress(), CZIPFile::File::Extract(), IsOpen(), LocateCentralDirectory(), Open(), and SeekToFile().

int CZIPFile::m_nFile [protected]
 

Definition at line 60 of file ZIPFile.h.

Referenced by Close(), CZIPFile(), GetCount(), GetFile(), LocateCentralDirectory(), and ParseCentralDirectory().

File* CZIPFile::m_pFile [protected]
 

Definition at line 59 of file ZIPFile.h.

Referenced by Close(), CZIPFile(), GetFile(), LocateCentralDirectory(), and ParseCentralDirectory().


The documentation for this class was generated from the following files:
Generated on Thu Dec 15 10:40:14 2005 for Shareaza 2.2.1.0 by  doxygen 1.4.2