Example #1
0
void YamlConfigurable::apply(ConfigNode const& configNode, bool showEffective, int verbosity) {
  try {
    init();
    store(configNode);
    validateStored();
    if (showEffective) logEffective(verbosity);
  } catch (std::exception& e) {
    SDL_LOG_RETHROW(Config, *this << ": ", e);
  }
}
Example #2
0
 void logEffectiveOnce(int verbosity = 0) const {
   if (logEffectiveOnce_.first()) logEffective(verbosity);
 }