41 if (file.find(
".zip") == std::string::npos)
66 throw Exception(
"File " + file +
" is not readable.");
bool exists(const std::string &file) const
Check if the given file exists.
virtual bool hasSource(const std::string &path) const
Check whether the provider already has created a source with that path.
VFSSource abstract baseclass.
bool isReadable(const std::string &file) const
Check if a given file is readable for this VFSSource.
Implements a Zip archive file source.
VFSSource * getSource(const std::string &path) const
Get the source instance of the path.
std::map< std::string, VFSSource *> m_sources
VFSSource * createSource(const std::string &file)
Create a new instance of a VFSSource initialized with the given file.