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):

  1. String map (cmd arg)

  2. Env var

  3. 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.