| 464 | } |
| 465 | |
| 466 | void Configurations::unsafeSet(Level level, ConfigurationType configurationType, const std::string& value) { |
| 467 | Configuration* conf = RegistryWithPred<Configuration, Configuration::Predicate>::get(level, configurationType); |
| 468 | if (conf == nullptr) { |
| 469 | registerNew(new Configuration(level, configurationType, value)); |
| 470 | } else { |
| 471 | conf->setValue(value); |
| 472 | } |
| 473 | if (level == Level::Global) { |
| 474 | unsafeSetGlobally(configurationType, value, false); |
| 475 | } |
| 476 | } |
| 477 | |
| 478 | void Configurations::setGlobally(ConfigurationType configurationType, const std::string& value, |
| 479 | bool includeGlobalLevel) { |