22 #ifndef FIFE_VFS_VFSSOURCEPROVIDER_H 23 #define FIFE_VFS_VFSSOURCEPROVIDER_H 58 const std::string&
getName()
const;
66 if(!
m_vfs)
throw NotSet(
"Attempt to load from VFSSourceProvider without setting a VFS!");
76 virtual bool isReadable(
const std::string& file)
const = 0;
97 virtual bool hasSource(
const std::string & path)
const = 0;
const std::string & getName() const
Returns the name of this VFSSourceProvider.
VFSSource abstract baseclass.
VFSSourceProvider(const std::string &name)
virtual ~VFSSourceProvider()
virtual bool isReadable(const std::string &file) const =0
Check if a given file is readable for this VFSSource.
virtual VFSSource * getSource(const std::string &path) const =0
Get the source instance of the path.
VFSSourceProvider abstract baseclass.
the main VFS (virtual file system) class
virtual bool hasSource(const std::string &path) const =0
Check whether the provider already has created a source with that path.
void setVFS(VFS *vfs)
Get the VFS this provider is using.
virtual VFSSource * createSource(const std::string &file)=0
Create a new instance of a VFSSource initialized with the given file.