| 1489 | } |
| 1490 | |
| 1491 | services_t routing_manager_impl::get_offered_services() const { |
| 1492 | services_t its_services; |
| 1493 | for (const auto& [service, instances] : get_services()) { |
| 1494 | for (const auto& [instance, info] : instances) { |
| 1495 | if (info) { |
| 1496 | if (info->is_local()) { |
| 1497 | its_services[service][instance] = info; |
| 1498 | } |
| 1499 | } else { |
| 1500 | VSOMEIP_ERROR_P << "Found instance with NULL ServiceInfo [" << hex4(service) << ":" << hex4(instance) << "]"; |
| 1501 | } |
| 1502 | } |
| 1503 | } |
| 1504 | return its_services; |
| 1505 | } |
| 1506 | |
| 1507 | std::shared_ptr<serviceinfo> routing_manager_impl::get_offered_service(service_t _service, instance_t _instance) const { |
| 1508 | std::shared_ptr<serviceinfo> its_info; |