34inline namespace Services {
40 return Configuration::getPath(
filename);
65 return boost::filesystem::is_directory(
local_dir);
74 boost::filesystem::create_directories(
dir);
95 string::size_type
offset(0);
98 if (
offset == string::npos) {
provide functions to retrieve configuration files
Defines a class to handle the Environment.
Python dictionary-like Environment interface.
std::string get(const std::string &index, const std::string &default_value="") const
ELEMENTS_API std::string environmentVariable(std::string name)
Get the value of an environment variable.
ELEMENTS_API path confFilePath(path filename)
ELEMENTS_API path localWorkspacePrefix()
ELEMENTS_API std::pair< std::string, std::string > runCommandAndCaptureOutErr(std::string command)
ELEMENTS_API std::string lower(std::string text)
Path::Item path
importing the path item from ElementsKernel
ELEMENTS_API bool checkCall(const std::string &command)
ELEMENTS_API void createLocalDirOf(path localFile)
ELEMENTS_API bool containsInThisOrder(std::string input, std::vector< std::string > substrings)
ELEMENTS_API bool localDirExists(path localDir)