Lumiera
0.pre.03
»edit your freedom«
|
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 <boost/filesystem.hpp>
#include <string>
#include <regex>
Classes | |
class | SearchPathSplitter |
Helper: Access a path Specification as a sequence of filesystem Paths. More... | |
Typedefs | |
using | SubMatch = std::smatch::value_type const & |
Functions | |
string | findExePath () |
retrieve the location of the executable More... | |
string | replaceMagicLinkerTokens (string const &src) |
replace $ORIGIN tokens in the given string More... | |
string | resolveModulePath (fsys::path moduleName, string searchPath="") |
helper to establish the location to search for loadable modules, configuration files, icons and further resources. More... | |
Namespaces | |
lib | |
Implementation namespace for support and library code. | |