33 #ifndef COMMON_SEARCHPATH_H 34 #define COMMON_SEARCHPATH_H 39 #include <boost/filesystem.hpp> 48 using SubMatch = std::smatch::value_type
const&;
51 namespace fsys = boost::filesystem;
53 using LERR_(ITER_EXHAUST);
75 std::sregex_iterator pos_,
78 static const std::regex EXTRACT_PATHSPEC;
83 , pos_(pathSpec_.begin(),pathSpec_.end(), EXTRACT_PATHSPEC)
87 explicit operator bool()
const {
return isValid(); }
100 ,LERR_(ITER_EXHAUST));
102 string currentPathElement = pos_->str();
104 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.