Go to the documentation of this file.
71 std::string& storeAbsoluteFilename,
72 const std::vector<std::string>& additionalSearchPaths = {},
86 const std::vector<std::string>& additionalSearchPaths = {},
90 std::string& resultFileName,
100 static std::string
getProject(
const std::vector<std::string>& projects,
101 const std::string& relativeFilename);
103 static std::string
cleanPath(
const std::string& filepathStr);
126 static std::string
relativeTo(
const std::string& from,
const std::string& to);
127 static bool mergePaths(std::string path, std::string subPath, std::string& result);
142 static void addDataPaths(
const std::string& dataPathList);
143 static void addDataPaths(
const std::vector<std::string>& dataPathList);
144 static void addDataPath(
const std::string& dataPath);
150 [[deprecated(
"ArmarXHome_DIR is not used anymore. Please remove usages of this function. "
151 "Keep the behaviour resulting by this function returning an empty string.")]]
180 ReplaceVar(std::string&
string,
const std::string varName,
const std::string& varValue);
194 static std::string
resolvePath(
const std::string& path,
bool verbose =
true);
220 static bool __pathIsValid(
const std::string& path);
221 static bool __addPath(
const std::string& path);
222 static bool __addPaths(
const std::string& pathList);
223 static std::vector<std::string> __separatePaths(
const std::string& pathList);
static std::string resolvePath(const std::string &path, bool verbose=true)
Resolves environment variables and home paths and tries to make path absolute.
static std::string relativeTo(const std::string &from, const std::string &to)
Transform an absolute filepath into a relative path of the other absolute filepath.
static void addDataPath(const std::string &dataPath)
static void ResolveHomePath(std::string &path)
Resolves a path like ~/myfile.txt or $HOME/myfile.txt to /home/user/myfile.txt.
static std::string cleanPath(const std::string &filepathStr)
static bool FindPackageAndAddDataPath(const std::string &packageName)
Search for the package and add its data path if it was found.
static std::string getHomePath()
static std::vector< std::string > getDataPaths()
static std::string getProject(const std::vector< std::string > &projects, const std::string &relativeFilename)
static void ReplaceVar(std::string &string, const std::string varName, const std::string &varValue)
Replaces all occurences of variables in bash notation, e.g.
static std::string GetCachePath()
The base Cache directory of ArmarX.
static std::string getRelativeArmarXPath(const std::string &absolutePathString)
This method tries to morph a given absolute path into a relative path to a ArmarXDataPath.
static void initDataPaths(const std::string &dataPathList)
static std::string GetDefaultUserConfigPath()
The user config directory of ArmarX.
static bool SearchReadableFile(const std::string &querryFileName, std::string &resultFileName, bool verbose=true)
static void addDataPaths(const std::string &dataPathList)
static bool ReplaceEnvVars(std::string &string)
ReplaceEnvVars replaces environment variables in a string with their values, if the env.
static bool getAbsolutePath(const std::string &relativeFilename, std::string &storeAbsoluteFilename, const std::vector< std::string > &additionalSearchPaths={}, bool verbose=true)
static bool mergePaths(std::string path, std::string subPath, std::string &result)
This file offers overloads of toIce() and fromIce() functions for STL container types.