MCPcopy Create free account
hub / github.com/COVESA/vsomeip / get_offered_services

Method get_offered_services

implementation/routing/src/routing_manager_impl.cpp:1491–1505  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1489}
1490
1491services_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
1507std::shared_ptr<serviceinfo> routing_manager_impl::get_offered_service(service_t _service, instance_t _instance) const {
1508 std::shared_ptr<serviceinfo> its_info;

Callers 1

sendMethod · 0.80

Calls 2

hex4Function · 0.85
is_localMethod · 0.45

Tested by

no test coverage detected