CACAO
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
ZipFile Class Reference

Public Types

typedef Table::Iterator Iterator
 
typedef Table::EntryRef EntryRef
 

Public Member Functions

EntryRef find (Utf8String filename)
 Find file in zip archive. More...
 
Iterator begin ()
 Allows iteration over all entries in zip archive. More...
 
Iterator end ()
 

Static Public Member Functions

static ZipFileopen (const char *path)
 Load zip archive. More...
 

Private Types

typedef HashTable
< InsertOnlyNamedEntry
< ZipFileEntry > > 
Table
 

Private Member Functions

 ZipFile (size_t capacity)
 

Private Attributes

Table table
 

Detailed Description

Definition at line 98 of file zip.hpp.

Member Typedef Documentation

typedef Table::EntryRef ZipFile::EntryRef

Definition at line 102 of file zip.hpp.

typedef Table::Iterator ZipFile::Iterator

Definition at line 101 of file zip.hpp.

Definition at line 99 of file zip.hpp.

Constructor & Destructor Documentation

ZipFile::ZipFile ( size_t  capacity)
inlineprivate

Definition at line 114 of file zip.hpp.

Member Function Documentation

Iterator ZipFile::begin ( )
inline

Allows iteration over all entries in zip archive.

Definition at line 111 of file zip.hpp.

Iterator ZipFile::end ( )
inline

Definition at line 112 of file zip.hpp.

EntryRef ZipFile::find ( Utf8String  filename)
inline

Find file in zip archive.

Definition at line 108 of file zip.hpp.

ZipFile * ZipFile::open ( const char *  path)
static

Load zip archive.

Definition at line 160 of file zip.cpp.

Field Documentation

Table ZipFile::table
private

Definition at line 116 of file zip.hpp.


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