iceoryx_posh 2.0.3
Public Member Functions | List of all members
iox::runtime::ServiceDiscovery Class Reference

Public Member Functions

 ServiceDiscovery (const ServiceDiscovery &)=delete
 
ServiceDiscoveryoperator= (const ServiceDiscovery &)=delete
 
 ServiceDiscovery (ServiceDiscovery &&)=delete
 
ServiceDiscoveryoperator= (ServiceDiscovery &&)=delete
 
void findService (const cxx::optional< capro::IdString_t > &service, const cxx::optional< capro::IdString_t > &instance, const cxx::optional< capro::IdString_t > &event, const cxx::function_ref< void(const capro::ServiceDescription &)> &callableForEach, const popo::MessagingPattern pattern) noexcept
 Searches all services with the given messaging pattern that match the provided service description and applies a function to each of them. More...
 

Member Function Documentation

◆ findService()

void iox::runtime::ServiceDiscovery::findService ( const cxx::optional< capro::IdString_t > &  service,
const cxx::optional< capro::IdString_t > &  instance,
const cxx::optional< capro::IdString_t > &  event,
const cxx::function_ref< void(const capro::ServiceDescription &)> &  callableForEach,
const popo::MessagingPattern  pattern 
)
noexcept

Searches all services with the given messaging pattern that match the provided service description and applies a function to each of them.

Parameters
[in]serviceservice string to search for, a nullopt corresponds to a wildcard
[in]instanceinstance string to search for, a nullopt corresponds to a wildcard
[in]eventevent string to search for, a nullopt corresponds to a wildcard
[in]callableForEachcallable to apply to all matching services
[in]patternmessaging pattern of the service to search

The documentation for this class was generated from the following file: