Cabinet::CCompressT< T > Class Template Reference

#include <CompressT.hpp>

List of all members.

Classes

struct  kCurStatus
struct  kEncrypt

Public Member Functions

 CCompressT ()
 ~CCompressT ()
void AbortOperation ()
void SetTempDirectory (char *s8_TempDir)
BOOL SetEncryptionKey (char *s8_EncryptKey)
BOOL CreateFCIContext (char *s8_File, ULONG u32_CabSplitSize=0x7FFFFFFF, USHORT u16_CabID=0)
BOOL CreateFCIContext (char *s8_CabPath, char *s8_CabFileName, ULONG u32_CabSplitSize=0x7FFFFFFF, USHORT u16_CabID=0)
BOOL DestroyFCIContext ()
BOOL AddFile (char *s8_FileToAdd, char *s8_NameInCab, void *pParam=0)
BOOL AddFolder (char *s8_Folder, char *s8_Filter="*.*", void *pParam=0, int s32_BaseLen=-1)
BOOL FlushCabinet (BOOL b_CreateNewCabinetFile, void *pParam=0)
BOOL FlushFolder (void *pParam=0)
int GetLastError (char **ps8_Description=0, int *pnExtra=0)

Protected Types

typedef void *typedef char char BOOL
typedef void *typedef char char PFNFCIGETNEXTCABINET
typedef void *typedef char char PFNFCISTATUS
typedef void *typedef char char PFNFCIGETOPENINFO
typedef void *typedef char char TCOMP
typedef BOOL(__cdecl * fFciFlushCabinet )(HFCI, BOOL, PFNFCIGETNEXTCABINET, PFNFCISTATUS)

Protected Member Functions

typedef HFCI (__cdecl *fFciCreate)(PERF
typedef void *typedef BOOL (__cdecl *fFciAddFile)(HFCI
typedef BOOL (__cdecl *fFciFlushFolder)(HFCI
typedef BOOL (__cdecl *fFciDestroy)(HFCI)
BOOL SetCabParameters (CCAB *pk_CabParams, char *s8_CabPath, char *s8_CabFileName, USHORT u16_CabID, ULONG u32_CabSplitSize)
int Open (char *pszFile, int oflag, int pmode, int *err, void *p_Param)
UINT Read (int hf, void *memory, UINT cb, int *err, void *p_Param)
UINT Write (int hf, void *memory, UINT cb, int *err, void *p_Param)
int Close (int hf, int *err, void *p_Param)
int Delete (char *pszFile, int *err, void *p_Param)
long Seek (int hf, long dist, int seektype, int *err, void *p_Param)
void EncryptDataBlock (void *p_Memory, UINT u32_Count, char *s8_Key, int s32_KeyLen, int s32_CabPtr, void *p_Param)
BOOL GetTempFile (char *pszTempName, int cbBufSize, void *p_Param)
int GetAttribsAndDate (char *pszName, USHORT *pdate, USHORT *ptime, USHORT *pattribs, int *err, void *p_Param)
int OnFilePlaced (PCCAB pccab, char *pszFile, long cbFile, BOOL fContinuation, void *p_Param)
BOOL OnGetNextCabinet (PCCAB pccab, ULONG cbPrevCab, void *p_Param)
long OnUpdateStatus (UINT typeStatus, kCurStatus *pk_CurStatus, void *p_Param)

Static Protected Member Functions

static void * Alloc (UINT size)
static void Free (void *memblock)

Protected Attributes

kEncrypt mk_Encrypt
kCurStatus mk_CurStatus
HFCI mh_FCIContext
ERF mk_Error
void * mp_Param
BOOL mb_Abort
BOOL mb_AutoFlush
CCAB mk_CabParams
char ms8_TempDir [MAX_PATH]
int ms32_TempCounter
char ms8_CabNameFormatter [256]
typedef PFNFCIFILEPLACED
typedef PFNFCIALLOC
typedef PFNFCIFREE
typedef PFNFCIOPEN
typedef PFNFCIREAD
typedef PFNFCIWRITE
typedef PFNFCICLOSE
typedef PFNFCISEEK
typedef PFNFCIDELETE
typedef PFNFCIGETTEMPFILE
typedef PCCAB
typedef PFNFCIGETNEXTCABINET
typedef PFNFCISTATUS
HINSTANCE mh_CabinetDll
fFciCreate mf_FciCreate
fFciAddFile mf_FciAddFile
fFciFlushFolder mf_FciFlushFolder
fFciFlushCabinet mf_FciFlushCabinet
fFciDestroy mf_FciDestroy

template<class T>
class Cabinet::CCompressT< T >


Member Typedef Documentation

template<class T>
typedef void* typedef char char Cabinet::CCompressT< T >::BOOL [protected]

template<class T>
typedef BOOL( __cdecl * Cabinet::CCompressT< T >::fFciFlushCabinet)(HFCI, BOOL, PFNFCIGETNEXTCABINET, PFNFCISTATUS) [protected]

template<class T>
typedef void* typedef char char Cabinet::CCompressT< T >::PFNFCIGETNEXTCABINET [protected]

template<class T>
typedef void* typedef char char Cabinet::CCompressT< T >::PFNFCIGETOPENINFO [protected]

template<class T>
typedef void* typedef char char Cabinet::CCompressT< T >::PFNFCISTATUS [protected]

template<class T>
typedef void* typedef char char Cabinet::CCompressT< T >::TCOMP [protected]


Constructor & Destructor Documentation

template<class T>
Cabinet::CCompressT< T >::CCompressT (  )  [inline]

template<class T>
Cabinet::CCompressT< T >::~CCompressT (  )  [inline]


Member Function Documentation

template<class T>
void Cabinet::CCompressT< T >::AbortOperation (  )  [inline]

template<class T>
BOOL Cabinet::CCompressT< T >::AddFile ( char *  s8_FileToAdd,
char *  s8_NameInCab,
void *  pParam = 0 
) [inline]

template<class T>
BOOL Cabinet::CCompressT< T >::AddFolder ( char *  s8_Folder,
char *  s8_Filter = "*.*",
void *  pParam = 0,
int  s32_BaseLen = -1 
) [inline]

template<class T>
static void* Cabinet::CCompressT< T >::Alloc ( UINT  size  )  [inline, static, protected]

template<class T>
typedef Cabinet::CCompressT< T >::BOOL ( __cdecl *  fFciDestroy  )  [protected]

template<class T>
typedef Cabinet::CCompressT< T >::BOOL ( __cdecl *  fFciFlushFolder  )  [protected]

template<class T>
typedef void* typedef Cabinet::CCompressT< T >::BOOL ( __cdecl *  fFciAddFile  )  [protected]

Type Constraints

template<class T>
int Cabinet::CCompressT< T >::Close ( int  hf,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::CreateFCIContext ( char *  s8_CabPath,
char *  s8_CabFileName,
ULONG  u32_CabSplitSize = 0x7FFFFFFF,
USHORT  u16_CabID = 0 
) [inline]

template<class T>
BOOL Cabinet::CCompressT< T >::CreateFCIContext ( char *  s8_File,
ULONG  u32_CabSplitSize = 0x7FFFFFFF,
USHORT  u16_CabID = 0 
) [inline]

template<class T>
int Cabinet::CCompressT< T >::Delete ( char *  pszFile,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::DestroyFCIContext (  )  [inline]

template<class T>
void Cabinet::CCompressT< T >::EncryptDataBlock ( void *  p_Memory,
UINT  u32_Count,
char *  s8_Key,
int  s32_KeyLen,
int  s32_CabPtr,
void *  p_Param 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::FlushCabinet ( BOOL  b_CreateNewCabinetFile,
void *  pParam = 0 
) [inline]

template<class T>
BOOL Cabinet::CCompressT< T >::FlushFolder ( void *  pParam = 0  )  [inline]

template<class T>
static void Cabinet::CCompressT< T >::Free ( void *  memblock  )  [inline, static, protected]

template<class T>
int Cabinet::CCompressT< T >::GetAttribsAndDate ( char *  pszName,
USHORT pdate,
USHORT ptime,
USHORT pattribs,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
int Cabinet::CCompressT< T >::GetLastError ( char **  ps8_Description = 0,
int *  pnExtra = 0 
) [inline]

template<class T>
BOOL Cabinet::CCompressT< T >::GetTempFile ( char *  pszTempName,
int  cbBufSize,
void *  p_Param 
) [inline, protected]

template<class T>
typedef Cabinet::CCompressT< T >::HFCI ( __cdecl *  fFciCreate  )  [protected]

template<class T>
int Cabinet::CCompressT< T >::OnFilePlaced ( PCCAB  pccab,
char *  pszFile,
long  cbFile,
BOOL  fContinuation,
void *  p_Param 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::OnGetNextCabinet ( PCCAB  pccab,
ULONG  cbPrevCab,
void *  p_Param 
) [inline, protected]

template<class T>
long Cabinet::CCompressT< T >::OnUpdateStatus ( UINT  typeStatus,
kCurStatus pk_CurStatus,
void *  p_Param 
) [inline, protected]

template<class T>
int Cabinet::CCompressT< T >::Open ( char *  pszFile,
int  oflag,
int  pmode,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
UINT Cabinet::CCompressT< T >::Read ( int  hf,
void *  memory,
UINT  cb,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
long Cabinet::CCompressT< T >::Seek ( int  hf,
long  dist,
int  seektype,
int *  err,
void *  p_Param 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::SetCabParameters ( CCAB pk_CabParams,
char *  s8_CabPath,
char *  s8_CabFileName,
USHORT  u16_CabID,
ULONG  u32_CabSplitSize 
) [inline, protected]

template<class T>
BOOL Cabinet::CCompressT< T >::SetEncryptionKey ( char *  s8_EncryptKey  )  [inline]

template<class T>
void Cabinet::CCompressT< T >::SetTempDirectory ( char *  s8_TempDir  )  [inline]

template<class T>
UINT Cabinet::CCompressT< T >::Write ( int  hf,
void *  memory,
UINT  cb,
int *  err,
void *  p_Param 
) [inline, protected]


Member Data Documentation

template<class T>
BOOL Cabinet::CCompressT< T >::mb_Abort [protected]

template<class T>
BOOL Cabinet::CCompressT< T >::mb_AutoFlush [protected]

template<class T>
fFciAddFile Cabinet::CCompressT< T >::mf_FciAddFile [protected]

template<class T>
fFciCreate Cabinet::CCompressT< T >::mf_FciCreate [protected]

template<class T>
fFciDestroy Cabinet::CCompressT< T >::mf_FciDestroy [protected]

template<class T>
fFciFlushCabinet Cabinet::CCompressT< T >::mf_FciFlushCabinet [protected]

template<class T>
fFciFlushFolder Cabinet::CCompressT< T >::mf_FciFlushFolder [protected]

template<class T>
HINSTANCE Cabinet::CCompressT< T >::mh_CabinetDll [protected]

template<class T>
HFCI Cabinet::CCompressT< T >::mh_FCIContext [protected]

template<class T>
CCAB Cabinet::CCompressT< T >::mk_CabParams [protected]

template<class T>
kCurStatus Cabinet::CCompressT< T >::mk_CurStatus [protected]

template<class T>
kEncrypt Cabinet::CCompressT< T >::mk_Encrypt [protected]

template<class T>
ERF Cabinet::CCompressT< T >::mk_Error [protected]

template<class T>
void* Cabinet::CCompressT< T >::mp_Param [protected]

template<class T>
int Cabinet::CCompressT< T >::ms32_TempCounter [protected]

template<class T>
char Cabinet::CCompressT< T >::ms8_CabNameFormatter[256] [protected]

template<class T>
char Cabinet::CCompressT< T >::ms8_TempDir[MAX_PATH] [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PCCAB [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIALLOC [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCICLOSE [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIDELETE [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIFILEPLACED [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIFREE [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIGETNEXTCABINET [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIGETTEMPFILE [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIOPEN [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIREAD [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCISEEK [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCISTATUS [protected]

template<class T>
typedef Cabinet::CCompressT< T >::PFNFCIWRITE [protected]


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

Generated on Wed Jan 28 19:15:53 2009 for VEMUS by  doxygen 1.5.8