Browse Source

Settings always initialized now

Former-commit-id: 10764fa8b9
tempestpy_adaptions
Mavo 9 years ago
parent
commit
37596d575a
  1. 11
      src/settings/SettingsManager.cpp

11
src/settings/SettingsManager.cpp

@ -72,11 +72,12 @@ namespace storm {
void SettingsManager::setFromString(std::string const& commandLineString) { void SettingsManager::setFromString(std::string const& commandLineString) {
if (commandLineString.empty()) { if (commandLineString.empty()) {
return;
this->setFromExplodedString({});
} else {
std::vector<std::string> argumentVector;
boost::split(argumentVector, commandLineString, boost::is_any_of("\t "));
this->setFromExplodedString(argumentVector);
} }
std::vector<std::string> argumentVector;
boost::split(argumentVector, commandLineString, boost::is_any_of("\t "));
this->setFromExplodedString(argumentVector);
} }
void SettingsManager::setFromExplodedString(std::vector<std::string> const& commandLineArguments) { void SettingsManager::setFromExplodedString(std::vector<std::string> const& commandLineArguments) {
@ -548,4 +549,4 @@ namespace storm {
return dynamic_cast<storm::settings::modules::SparseDtmcEliminationModelCheckerSettings const&>(manager().getModule(storm::settings::modules::SparseDtmcEliminationModelCheckerSettings::moduleName)); return dynamic_cast<storm::settings::modules::SparseDtmcEliminationModelCheckerSettings const&>(manager().getModule(storm::settings::modules::SparseDtmcEliminationModelCheckerSettings::moduleName));
} }
} }
}
}
Loading…
Cancel
Save