| 294 | } |
| 295 | |
| 296 | comm::RetCode TopicConfig::GetSubBySubID(const int sub_id, shared_ptr<const proto::Sub> &sub) const { |
| 297 | sub = nullptr; |
| 298 | |
| 299 | auto &&it = impl_->sub_id2sub.find(sub_id); |
| 300 | if (impl_->sub_id2sub.end() == it) { |
| 301 | return comm::RetCode::RET_ERR_RANGE_SUB; |
| 302 | } |
| 303 | sub = it->second; |
| 304 | |
| 305 | return comm::RetCode::RET_OK; |
| 306 | } |
| 307 | |
| 308 | |
| 309 | /******************* queue_info ********************/ |
no outgoing calls