NumeRe v1.1.4
NumeRe: Framework für Numerische Rechnungen
TUnzip Class Reference
Collaboration diagram for TUnzip:

Public Member Functions

 TUnzip (const char *pwd)
 
 ~TUnzip ()
 
ZRESULT Open (void *z, unsigned int len, DWORD flags)
 
ZRESULT Get (int index, ZIPENTRY *ze)
 
ZRESULT Find (const TCHAR *name, bool ic, int *index, ZIPENTRY *ze)
 
ZRESULT Unzip (int index, void *dst, unsigned int len, DWORD flags)
 
ZRESULT SetUnzipBaseDir (const TCHAR *dir)
 
ZRESULT Close ()
 

Public Attributes

unzFile uf
 
int currentfile
 
ZIPENTRY cze
 
int czei
 
char * password
 
char * unzbuf
 
TCHAR rootdir [MAX_PATH]
 

Detailed Description

Definition at line 4031 of file unzip.cpp.

Constructor & Destructor Documentation

◆ TUnzip()

TUnzip::TUnzip ( const char *  pwd)
inline

Definition at line 4034 of file unzip.cpp.

References password.

◆ ~TUnzip()

TUnzip::~TUnzip ( )
inline

Definition at line 4042 of file unzip.cpp.

References password, and unzbuf.

Member Function Documentation

◆ Close()

ZRESULT TUnzip::Close ( )

Definition at line 4527 of file unzip.cpp.

References currentfile, uf, unzClose(), unzCloseCurrentFile(), and ZR_OK.

Referenced by CloseZipU().

Here is the call graph for this function:

◆ Find()

ZRESULT TUnzip::Find ( const TCHAR *  name,
bool  ic,
int *  index,
ZIPENTRY ze 
)

Definition at line 4308 of file unzip.cpp.

References CASE_INSENSITIVE, CASE_SENSITIVE, currentfile, Get(), if(), ZIPENTRY::index, name, unz_s::num_file, uf, UNZ_OK, unzCloseCurrentFile(), unzLocateFile(), ZR_NOTFOUND, and ZR_OK.

Referenced by FindZipItem().

Here is the call graph for this function:

◆ Get()

◆ Open()

ZRESULT TUnzip::Open ( void *  z,
unsigned int  len,
DWORD  flags 
)

Definition at line 4067 of file unzip.cpp.

References _T, currentfile, lufopen(), rootdir, uf, unzOpenInternal(), ZIP_HANDLE, ZR_NOFILE, ZR_NOTINITED, ZR_OK, and ZR_SEEK.

Referenced by OpenZipInternal().

Here is the call graph for this function:

◆ SetUnzipBaseDir()

ZRESULT TUnzip::SetUnzipBaseDir ( const TCHAR *  dir)

Definition at line 4099 of file unzip.cpp.

References _T, rootdir, and ZR_OK.

Referenced by SetUnzipBaseDir().

◆ Unzip()

ZRESULT TUnzip::Unzip ( int  index,
void *  dst,
unsigned int  len,
DWORD  flags 
)

Member Data Documentation

◆ currentfile

int TUnzip::currentfile

Definition at line 4051 of file unzip.cpp.

Referenced by Close(), Find(), Get(), Open(), and Unzip().

◆ cze

ZIPENTRY TUnzip::cze

Definition at line 4052 of file unzip.cpp.

Referenced by Get().

◆ czei

int TUnzip::czei

Definition at line 4053 of file unzip.cpp.

Referenced by Get().

◆ password

char* TUnzip::password

Definition at line 4054 of file unzip.cpp.

Referenced by TUnzip(), Unzip(), and ~TUnzip().

◆ rootdir

TCHAR TUnzip::rootdir[MAX_PATH]

Definition at line 4056 of file unzip.cpp.

Referenced by Open(), SetUnzipBaseDir(), and Unzip().

◆ uf

unzFile TUnzip::uf

Definition at line 4050 of file unzip.cpp.

Referenced by Close(), Find(), Get(), Open(), and Unzip().

◆ unzbuf

char* TUnzip::unzbuf

Definition at line 4055 of file unzip.cpp.

Referenced by Unzip(), and ~TUnzip().


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