#include <filesystemzip.h>
Inheritance diagram for FileSystemZIP:
Public Member Functions | |
FileSystemZIP () | |
virtual | ~FileSystemZIP () |
virtual void | Clear () |
virtual boost::shared_ptr< salt::RFile > | Open (const std::string &inName) |
tries to open the file named inName. | |
virtual bool | SetPath (const std::string &inPath) |
sets the path all calls to Open are relative to. | |
virtual int | ForEachFile (const std::string &expression, TCallback callback, void *param) |
Protected Types | |
typedef std::map< std::string, TArchiveEntry * > | TEntryMap |
Protected Member Functions | |
void | AddArchiveEntry (TArchiveEntry *ae) |
void | ZIPGetLocalHeader (TLocalHeader *lh) |
void | ZIPGetFileHeader (TFileHeader *fh) |
void | ZIPGetCentralDirectoryEnd (TCentralDirectoryEnd *cde) |
void | ZIPGetCentralDirectoryEndFirst (TCentralDirectoryEnd *cde) |
void | ZIPSkipData (TLocalHeader *lh) |
Protected Attributes | |
boost::shared_ptr< salt::StdFile > | mHandle |
std::string | mArchiveName |
TEntryMap | mEntryMap |
Classes | |
struct | TArchiveEntry |
struct | TCentralDirectoryEnd |
struct | TFileHeader |
struct | TLocalHeader |
Definition at line 71 of file filesystemzip.h.
|
Definition at line 139 of file filesystemzip.h. |
|
Definition at line 55 of file filesystemzip.cpp. |
|
Definition at line 59 of file filesystemzip.cpp. References Clear(). Here is the call graph for this function: ![]() |
|
Definition at line 413 of file filesystemzip.cpp. References FileSystemZIP::TArchiveEntry::filename, and mEntryMap. |
|
Definition at line 283 of file filesystemzip.cpp. References FileSystemZIP::TArchiveEntry::filename, mArchiveName, mEntryMap, and mHandle. Referenced by ~FileSystemZIP(). |
|
|
|
tries to open the file named inName. Returns an instance of a salt::RFile on success, NULL otherwise Implements zeitgeist::FileSystem. |
|
sets the path all calls to Open are relative to. For a standard file system this call maps directly to a directory. For Filesystems providing access to an archive it is used to select the archive, i.e. it is the filename of an archive. Please refer to concrete Filesystems for an example implementation. Implements zeitgeist::FileSystem. |
|
|
Definition at line 394 of file filesystemzip.cpp. References mHandle, SIG_CENTRAL_DIRECTORY_END, and ZIPGetCentralDirectoryEnd(). Here is the call graph for this function: ![]() |
|
|
|
Definition at line 328 of file filesystemzip.cpp. References FileSystemZIP::TLocalHeader::compressed_size, and mHandle. |
|
Definition at line 163 of file filesystemzip.h. Referenced by Clear(). |
|
Definition at line 164 of file filesystemzip.h. Referenced by AddArchiveEntry(), and Clear(). |
|
Definition at line 162 of file filesystemzip.h. Referenced by Clear(), ZIPGetCentralDirectoryEnd(), ZIPGetCentralDirectoryEndFirst(), ZIPGetFileHeader(), ZIPGetLocalHeader(), and ZIPSkipData(). |