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;
VFSSource abstract baseclass.
const std::string & getName() const
Returns the name of this VFSSourceProvider.
VFSSourceProvider(const std::string &name)
virtual VFSSource * createSource(const std::string &file) const =0
Create a new instance of a VFSSource initialized with the given file.
virtual ~VFSSourceProvider()
virtual bool isReadable(const std::string &file) const =0
Check if a given file is readable for this VFSSource.
VFSSourceProvider abstract baseclass.
the main VFS (virtual file system) class
void setVFS(VFS *vfs)
Get the VFS this provider is using.