31 this->defaultStartUp = getProperty<std::string>(
"DefaultStateStartUp").getValue();
32 this->defaultStateValues = getProperty<std::string>(
"DefaultStates").getValue();
33 std::size_t pos = defaultStartUp.find(
":");
36 if (pos != std::string::npos)
38 message = defaultStartUp.substr(0, pos);
39 i = std::stoi(defaultStartUp.substr(pos + 1));
41 this->currentSeverity =
static_cast<severity::SeverityEnum
>(i);
65 def->required(properties.defaultStates,
"DefaultStates",
"");
66 def->required(properties.defaultStateStartUp,
"DefaultStateStartUp",
"");
72 armarx::severity::SeverityEnum severity,
75 this->currentSeverity = severity;
76 this->currentState = state;
82 this->currentSeverity = severity::SeverityEnum::normal;
89 return {this->currentState, this->currentSeverity};
95 return this->defaultStateValues;