22 #ifndef FIFE_VFS_VFSSOURCE_H 23 #define FIFE_VFS_VFSSOURCE_H 56 virtual bool fileExists(
const std::string& file)
const = 0;
68 virtual RawData*
open(
const std::string& file)
const = 0;
75 virtual std::set<std::string>
listFiles(
const std::string& path)
const = 0;
82 virtual std::set<std::string>
listDirectories(
const std::string& path)
const = 0;
85 std::string
fixPath(std::string path)
const;
virtual std::set< std::string > listDirectories(const std::string &path) const =0
list all directories in a directory of this source
virtual bool fileExists(const std::string &file) const =0
check if the given file exists
VFSSource abstract baseclass.
VFS * getVFS() const
get the VFS this source is associated with.
the main VFS (virtual file system) class
std::string fixPath(std::string path) const
virtual std::set< std::string > listFiles(const std::string &path) const =0
list all files in a directory of this source
virtual RawData * open(const std::string &file) const =0
open a file inside this source
Used to access diffrent kinds of data.