24 #ifndef COMMON_SEARCHPATH_H 25 #define COMMON_SEARCHPATH_H 30 #include <boost/filesystem.hpp> 39 using SubMatch = std::smatch::value_type
const&;
42 namespace fsys = boost::filesystem;
44 using LERR_(ITER_EXHAUST);
66 std::sregex_iterator pos_,
69 static const std::regex EXTRACT_PATHSPEC;
74 , pos_(pathSpec_.begin(),pathSpec_.end(), EXTRACT_PATHSPEC)
78 explicit operator bool()
const {
return isValid(); }
91 ,LERR_(ITER_EXHAUST));
93 string currentPathElement = pos_->str();
95 return currentPathElement;
string findExePath()
retrieve the location of the executable
Any copy and copy construction prohibited.
Implementation namespace for support and library code.
string replaceMagicLinkerTokens(string const &src)
replace $ORIGIN tokens in the given string
Derived specific exceptions within Lumiera's exception hierarchy.
Mix-Ins to allow or prohibit various degrees of copying and cloning.
Lumiera error handling (C++ interface).
Helper: Access a path Specification as a sequence of filesystem Paths.
string resolveModulePath(fsys::path moduleName, string searchPath)
helper to establish the location to search for loadable modules, configuration files, icons and further resources.