| 43 | ConfigFactory::~ConfigFactory() {} |
| 44 | |
| 45 | unique_ptr<phxqueue::config::GlobalConfig> ConfigFactory::NewGlobalConfig() { |
| 46 | QLVerb("path %s", impl_->global_config_path.c_str()); |
| 47 | |
| 48 | auto &&conf(new config::GlobalConfig()); |
| 49 | conf->SetNeedCheck(impl_->need_check); |
| 50 | conf->SetFileIfUnset(impl_->global_config_path); |
| 51 | if (conf) conf->LoadIfModified(); |
| 52 | |
| 53 | return unique_ptr<config::GlobalConfig>(conf); |
| 54 | } |
| 55 | |
| 56 | unique_ptr<phxqueue::config::TopicConfig> |
| 57 | ConfigFactory::NewTopicConfig(const int topic_id, const string &path) { |
nothing calls this directly
no test coverage detected