Interface for locating resource files and working directory.
More...
#include <fileLocatorInterface.hpp>
Interface for locating resource files and working directory.
virtual strus::FileLocatorInterface::~FileLocatorInterface |
( |
| ) |
|
|
inlinevirtual |
virtual void strus::FileLocatorInterface::addResourcePath |
( |
const std::string & |
path | ) |
|
|
pure virtual |
Declare a path for locating resource files.
- Parameters
-
virtual void strus::FileLocatorInterface::defineWorkingDirectory |
( |
const std::string & |
workdir | ) |
|
|
pure virtual |
Define the working directory where to write files to.
- Parameters
-
[in] | workdir | directory path specifying the root directory of all files written |
virtual std::string strus::FileLocatorInterface::getResourceFilePath |
( |
const std::string & |
filename | ) |
const |
|
pure virtual |
Get the absolute path of a resource file.
- Parameters
-
[in] | filename | name of the resource file |
- Returns
- the full path of the file with the filename passed as argument
virtual std::vector<std::string> strus::FileLocatorInterface::getResourcePaths |
( |
| ) |
const |
|
pure virtual |
Get all resource paths.
- Returns
- the list of resource paths
virtual std::string strus::FileLocatorInterface::getWorkingDirectory |
( |
| ) |
const |
|
pure virtual |
Get the current working directory, the root directory of files and directories written.
- Returns
- the working directory
The documentation for this class was generated from the following file: