| 148 | |
| 149 | |
| 150 | comm::RetCode GlobalConfig::GetAllTopicConfig(vector<shared_ptr<const TopicConfig> > &topic_configs) const { |
| 151 | topic_configs.clear(); |
| 152 | for (auto &&it : impl_->topic_id2topic_config) { |
| 153 | auto &&topic_config = it.second; |
| 154 | if (topic_config) { |
| 155 | topic_config->Load(); |
| 156 | topic_configs.push_back(topic_config); |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | return comm::RetCode::RET_OK; |
| 161 | } |
| 162 | |
| 163 | comm::RetCode GlobalConfig::GetAllTopicID(set<int> &topic_ids) const { |
| 164 | topic_ids.clear(); |