FIFE
2008.0
|
#include <vfssource.h>
Public Member Functions | |
virtual bool | fileExists (const std::string &file) const =0 |
VFS * | getVFS () const |
virtual RawData * | open (const std::string &file) const =0 |
virtual std::set< std::string > | listFiles (const std::string &path) const =0 |
virtual std::set< std::string > | listDirectories (const std::string &path) const =0 |
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.
virtual bool FIFE::VFSSource::fileExists | ( | const std::string & | file | ) | const [pure virtual] |
check if the given file exists
file | filename to check |
Implemented in FIFE::DAT2, FIFE::VFSDirectory, FIFE::DAT1, and FIFE::ZipSource.
VFS* FIFE::VFSSource::getVFS | ( | ) | const [inline] |
get the VFS this source is associated with.
Definition at line 60 of file vfssource.h.
Referenced by FIFE::DAT1::open(), and FIFE::DAT2::open().
virtual std::set<std::string> FIFE::VFSSource::listDirectories | ( | const std::string & | path | ) | const [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.
virtual std::set<std::string> FIFE::VFSSource::listFiles | ( | const std::string & | path | ) | const [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.
virtual RawData* FIFE::VFSSource::open | ( | const std::string & | file | ) | const [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().