carb::extras::getAppPathAndName
Defined in carb/extras/VariableSetup.h
-
inline void carb::extras::getAppPathAndName(const std::map<std::string, std::string> &stringMap, std::string &appPath, std::string &appName)
Determines application path and name.
Priority (for path and name separately):
String map (cmd arg)
Env var
Executable path/name (filesystem)
- Parameters
stringMap – String map - e.g. parsed args as output from the CmdLineParser.
appPath – Resulting application path.
appName – Resulting application name.