30 #include <Ice/Properties.h>
32 #include <SimoxUtility/algorithm/string/string_tools.h>
34 #include "../../../core/logging/Logging.h"
47 return simox::alg::replace_last(executableName,
"Run",
"");
52 return simox::alg::replace_last(executableName,
"_run",
"");
55 return executableName;
59 std::string executablePath,
60 std::string packageName) :
62 executableName(executableName),
63 executablePath(executablePath),
64 packageName(packageName),
77 name(application.name),
78 executableName(application.executableName),
79 executablePath(application.executablePath),
80 packageName(application.packageName),
81 found(application.found),
85 IceProperties::create(application.
getProperties()->getProperties()->clone());
100 return this->executablePath;
112 return this->properties;
123 this->properties = properties;
124 this->properties->setPrefix(
"");
125 this->properties->setDescription(name +
" properties");
131 return std::filesystem::exists(executablePath / executableName);
143 if (defaultMap.count(name) == 0)
147 if (enabledMap.count(name) == 0)
151 return enabledMap[name];
157 if (defaultMap.count(name) == 0)
167 if (defaultMap.count(name) == 0)
171 return defaultMap[name];
177 defaultMap[name] = defaultValue;
185 return executableName;
191 return executablePath / executableName;