|
FIFE
|
VFSSource abstract baseclass. More...
#include <vfssource.h>
Inheritance diagram for FIFE::VFSSource:
Collaboration diagram for FIFE::VFSSource:Public Member Functions | |
| VFSSource (VFS *vfs) | |
| virtual | ~VFSSource () |
| virtual bool | fileExists (const std::string &file) const =0 |
| check if the given file exists More... | |
| VFS * | getVFS () const |
| get the VFS this source is associated with. More... | |
| virtual RawData * | open (const std::string &file) const =0 |
| open a file inside this source More... | |
| virtual std::set< std::string > | listFiles (const std::string &path) const =0 |
| list all files in a directory of this source More... | |
| virtual std::set< std::string > | listDirectories (const std::string &path) const =0 |
| list all directories in a directory of this source More... | |
Protected Member Functions | |
| std::string | fixPath (std::string path) const |
Private Attributes | |
| VFS * | m_vfs |
VFSSource abstract baseclass.
VFSSources are used to provide transparent access to diffrent archives/filesystems etc. Examples are VFSHostSystem
Definition at line 46 of file vfssource.h.
| FIFE::VFSSource::VFSSource | ( | VFS * | vfs | ) |
Definition at line 36 of file vfssource.cpp.
|
virtual |
Definition at line 39 of file vfssource.cpp.
References m_vfs, and FIFE::VFS::removeSource().
|
pure virtual |
check if the given file exists
| file | filename to check |
Implemented in FIFE::DAT2, FIFE::VFSDirectory, FIFE::ZipSource, and FIFE::DAT1.
Referenced by FIFE::VFS::getSourceForFile().
Here is the caller graph for this function:
|
protected |
Definition at line 45 of file vfssource.cpp.
Referenced by FIFE::DAT1::loadFileList(), and FIFE::DAT2::readFileEntry().
Here is the caller graph for this function:
|
inline |
get the VFS this source is associated with.
Definition at line 60 of file vfssource.h.
References m_vfs.
Referenced by FIFE::DAT1::open(), and FIFE::DAT2::open().
Here is the caller graph for this function:
|
pure virtual |
list all directories in a directory of this source
| path | path to list directories in Will return an empty list on any error |
Implemented in FIFE::DAT2, FIFE::VFSDirectory, FIFE::DAT1, and FIFE::ZipSource.
|
pure virtual |
list all files in a directory of this source
| path | path to list files in Will return an empty list on any error |
Implemented in FIFE::DAT2, FIFE::VFSDirectory, FIFE::DAT1, and FIFE::ZipSource.
|
pure virtual |
open a file inside this source
| file | the file to open |
| CannotOpenFile | if the file can't be found |
Implemented in FIFE::DAT2, FIFE::VFSDirectory, FIFE::ZipSource, and FIFE::DAT1.
Referenced by FIFE::VFS::open().
Here is the caller graph for this function:
|
private |
Definition at line 88 of file vfssource.h.
Referenced by getVFS(), and ~VFSSource().