FIFE
|
Provider for OS directories. More...
#include <directoryprovider.h>
Public Member Functions | |
DirectoryProvider () | |
virtual bool | isReadable (const std::string &path) const |
Check if a given directory is readable. More... | |
virtual VFSSource * | createSource (const std::string &path) const |
Create a new instance of a VFSSource initialized with the given directory This will only pass if the path is readable and recognized as a directory as per the description of isReadable. More... | |
![]() | |
VFSSourceProvider (const std::string &name) | |
virtual | ~VFSSourceProvider () |
const std::string & | getName () const |
Returns the name of this VFSSourceProvider. More... | |
void | setVFS (VFS *vfs) |
Get the VFS this provider is using. More... | |
VFS * | getVFS () const |
Private Attributes | |
std::string | m_name |
Provider for OS directories.
Definition at line 42 of file directoryprovider.h.
|
inline |
Definition at line 44 of file directoryprovider.h.
|
virtual |
Create a new instance of a VFSSource initialized with the given directory This will only pass if the path is readable and recognized as a directory as per the description of isReadable.
path | the directory to open |
Implements FIFE::VFSSourceProvider.
Definition at line 42 of file directoryprovider.cpp.
References FIFE::VFSSourceProvider::getVFS(), and isReadable().
|
virtual |
Check if a given directory is readable.
The path must either be an absolute path or relative to the current working directory where the client was launched
path | the filename to check |
Implements FIFE::VFSSourceProvider.
Definition at line 38 of file directoryprovider.cpp.
Referenced by createSource().
|
private |
Definition at line 65 of file directoryprovider.h.