示例#1
0
文件: Config.cpp 项目: graehl/hyp
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);
  }
}
示例#2
0
文件: Config.hpp 项目: anibalanto/hyp
 void logEffectiveOnce(int verbosity = 0) const {
   if (logEffectiveOnce_.first()) logEffective(verbosity);
 }