![]() |
Lumiera 0.pre.04
»edit your freedom«
|
Helpers to handle directory search paths. More...
Go to the source code of this file.
Helpers to handle directory search paths.
The SerachPathSplitter allows to evaluate a "path" like specification with colon separated components. It is complemented by some magic convenience functions to self-discover the currently running executable and to resolve the $ORIGIN pattern similar to what is known from linker rpath / runpath
Definition in file searchpath.hpp.
#include "lib/error.hpp"#include "lib/nocopy.hpp"#include "lib/regex.hpp"#include "lib/file.hpp"#include <string>#include <boost/algorithm/string.hpp>Namespaces | |
| namespace | lib |
| Implementation namespace for support and library code. | |
Typedefs | |
| using | SubMatch = std::smatch::value_type const & |
Classes | |
| class | SearchPathSplitter |
| Helper: Access a path Specification as a sequence of filesystem Paths. More... | |
Functions | |
| fs::path | findExePath () |
| retrieve the location of the executable | |
| string | replaceMagicLinkerTokens (string const &src) |
| replace $ORIGIN tokens in the given string | |
| string | resolveModulePath (fs::path moduleName, string searchPath="") |
| helper to establish the location to search for loadable modules, configuration files, icons and further resources. | |