| 161 | } |
| 162 | |
| 163 | comm::RetCode GlobalConfig::GetAllTopicID(set<int> &topic_ids) const { |
| 164 | topic_ids.clear(); |
| 165 | for (auto &&it : impl_->topic_id2topic_config) { |
| 166 | topic_ids.insert(it.first); |
| 167 | } |
| 168 | return comm::RetCode::RET_OK; |
| 169 | } |
| 170 | |
| 171 | comm::RetCode GlobalConfig::GetTopicIDByHandleID(const int handle_id, int &topic_id) const { |
| 172 | topic_id = 0; |
no outgoing calls