30 #include <Ice/Properties.h>
32 #include <SimoxUtility/algorithm/string/string_tools.h>
34 #include "../../../core/logging/Logging.h"
40 std::string
prettify(
const std::string& executableName)
47 return simox::alg::replace_last(executableName,
"Run",
"");
52 return simox::alg::replace_last(executableName,
"_run",
"");
55 return executableName;
60 executableName(executableName),
61 executablePath(executablePath),
62 packageName(packageName),
75 : name(application.name)
76 , executableName(application.executableName)
77 , executablePath(application.executablePath)
78 , packageName(application.packageName)
79 , found(application.found)
96 return this->executablePath;
106 return this->properties;
114 this->properties = properties;
115 this->properties->setPrefix(
"");
116 this->properties->setDescription(name +
" properties");
121 return std::filesystem::exists(executablePath / executableName);
131 if (defaultMap.count(name) == 0)
135 if (enabledMap.count(name) == 0)
139 return enabledMap[name];
144 if (defaultMap.count(name) == 0)
154 if (defaultMap.count(name) == 0)
158 return defaultMap[name];
163 defaultMap[name] = defaultValue;
170 return executableName;
175 return executablePath / executableName;