#include <VFS.h>
Public Member Functions | |
VFS () | |
VFS constructor, takes applicationName in parameter, to search in ~/.applicationName. | |
virtual | ~VFS () |
VFS destructor. | |
void | addDir (const std::string &dir) |
Add a directory to the search list. | |
void | addWriteSubdir (const std::string &subdir) |
Add a new subdir (create it if needed) which will be used to open file in write mode in it. | |
std::string | getFullPath (const std::string &name, const std::string &mode="r") |
Return the first valid full path for file name. Returns "" if no such path exist. | |
Private Attributes | |
std::vector< std::string > | dirList |
List of directory where to search for requested file. |