pub ********************/
| 222 | |
| 223 | /******************* pub ********************/ |
| 224 | comm::RetCode TopicConfig::GetAllPub(vector<shared_ptr<const proto::Pub>> &pubs) const { |
| 225 | pubs.clear(); |
| 226 | |
| 227 | for (auto &&it : impl_->pub_id2pub) { |
| 228 | pubs.push_back(it.second); |
| 229 | } |
| 230 | return comm::RetCode::RET_OK; |
| 231 | } |
| 232 | |
| 233 | comm::RetCode TopicConfig::GetAllPubID(set<int> &pub_ids) const { |
| 234 | pub_ids.clear(); |
no outgoing calls