|
FIFE 2008.0
|
#include <directoryprovider.h>


Public Member Functions | |
| virtual bool | isReadable (const std::string &path) const |
| virtual VFSSource * | createSource (const std::string &path) const |
Provider for OS directories.
Definition at line 42 of file directoryprovider.h.
| FIFE::VFSSource * FIFE::DirectoryProvider::createSource | ( | const std::string & | path | ) | const [virtual] |
Create a new instance of a VFSSource initialized with the given directory
| file | the directory to open |
Implements FIFE::VFSSourceProvider.
Definition at line 42 of file directoryprovider.cpp.
References isReadable().
| bool FIFE::DirectoryProvider::isReadable | ( | const std::string & | path | ) | const [virtual] |
Check if a given directory is readable for this VFSSource. Directory sources must be denoted by a trailing '/', otherwise VFS will consider the source to be a file, and unreadable asa a directory.
| file | the filename to check |
Implements FIFE::VFSSourceProvider.
Definition at line 38 of file directoryprovider.cpp.
References FIFE::VFS::isDirectory().
Referenced by createSource().
