FIFE
be64c707dea6b3250bd4355bf5c825d25920087d
|
A VFS provider for Zip archives. More...
#include <zipprovider.h>
Public Member Functions | |
ZipProvider () | |
bool | isReadable (const std::string &file) const |
Check if a given file is readable for this VFSSource. More... | |
VFSSource * | createSource (const std::string &file) |
Create a new instance of a VFSSource initialized with the given file. More... | |
VFSSource * | getSource (const std::string &path) const |
Get the source instance of the path. More... | |
virtual bool | hasSource (const std::string &path) const |
Check whether the provider already has created a source with that path. More... | |
Public Member Functions inherited from FIFE::VFSSourceProvider | |
VFSSourceProvider (const std::string &name) | |
virtual | ~VFSSourceProvider () |
const std::string & | getName () const |
Returns the name of this VFSSourceProvider. More... | |
void | setVFS (VFS *vfs) |
Get the VFS this provider is using. More... | |
VFS * | getVFS () const |
Private Attributes | |
std::map< std::string, VFSSource *> | m_sources |
A VFS provider for Zip archives.
Definition at line 43 of file zipprovider.h.
|
inline |
Definition at line 45 of file zipprovider.h.
References createSource(), getSource(), hasSource(), and isReadable().
|
virtual |
Create a new instance of a VFSSource initialized with the given file.
file | the filename to open (the archive-file) |
Implements FIFE::VFSSourceProvider.
Definition at line 54 of file zipprovider.cpp.
References FIFE::VFSSourceProvider::getVFS(), hasSource(), isReadable(), and m_sources.
Referenced by ZipProvider().
|
virtual |
Get the source instance of the path.
path | The source path |
Implements FIFE::VFSSourceProvider.
Definition at line 69 of file zipprovider.cpp.
References hasSource(), and m_sources.
Referenced by ZipProvider().
|
virtual |
Check whether the provider already has created a source with that path.
path | The path to the source |
Implements FIFE::VFSSourceProvider.
Definition at line 77 of file zipprovider.cpp.
References m_sources.
Referenced by createSource(), getSource(), and ZipProvider().
|
virtual |
Check if a given file is readable for this VFSSource.
file | the filename to check |
Implements FIFE::VFSSourceProvider.
Definition at line 38 of file zipprovider.cpp.
References FIFE::VFS::exists(), and FIFE::VFSSourceProvider::getVFS().
Referenced by createSource(), and ZipProvider().
|
private |
Definition at line 52 of file zipprovider.h.
Referenced by createSource(), getSource(), and hasSource().