FIFE
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
FIFE::ZipProvider Class Reference

A VFS provider for Zip archives. More...

#include <zipprovider.h>

+ Inheritance diagram for FIFE::ZipProvider:
+ Collaboration diagram for FIFE::ZipProvider:

Public Member Functions

 ZipProvider ()
 
bool isReadable (const std::string &file) const
 Check if a given file is readable for this VFSSource. More...
 
VFSSourcecreateSource (const std::string &file) const
 Create a new instance of a VFSSource initialized with the given file. 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...
 
VFSgetVFS () const
 

Detailed Description

A VFS provider for Zip archives.

See Also
FIFE::VFSSourceProvider

Definition at line 42 of file zipprovider.h.

Constructor & Destructor Documentation

FIFE::ZipProvider::ZipProvider ( )
inline

Definition at line 44 of file zipprovider.h.

Member Function Documentation

FIFE::VFSSource * FIFE::ZipProvider::createSource ( const std::string &  file) const
virtual

Create a new instance of a VFSSource initialized with the given file.

Parameters
filethe filename to open (the archive-file)
Returns
the new VFSSource

Implements FIFE::VFSSourceProvider.

Definition at line 54 of file zipprovider.cpp.

References FIFE::VFSSourceProvider::getVFS(), and isReadable().

bool FIFE::ZipProvider::isReadable ( const std::string &  file) const
virtual

Check if a given file is readable for this VFSSource.

Parameters
filethe filename to check
Returns
true if readable, false otherwise

Implements FIFE::VFSSourceProvider.

Definition at line 38 of file zipprovider.cpp.

References FIFE::VFS::exists(), and FIFE::VFSSourceProvider::getVFS().

Referenced by createSource().

+ Here is the caller graph for this function:


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