iox::runtime::ServiceDiscovery🔗
Public Functions🔗
Name | |
---|---|
ServiceDiscovery() | |
ServiceDiscovery(const ServiceDiscovery & ) | |
ServiceDiscovery & | operator=(const ServiceDiscovery & ) |
ServiceDiscovery(ServiceDiscovery && ) | |
ServiceDiscovery & | operator=(ServiceDiscovery && ) |
~ServiceDiscovery() =default | |
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) Searches all services with the given messaging pattern that match the provided service description and applies a function to each of them. |
Public Functions Documentation🔗
function ServiceDiscovery🔗
ServiceDiscovery()
function ServiceDiscovery🔗
ServiceDiscovery(
const ServiceDiscovery &
)
function operator=🔗
ServiceDiscovery & operator=(
const ServiceDiscovery &
)
function ServiceDiscovery🔗
ServiceDiscovery(
ServiceDiscovery &&
)
function operator=🔗
ServiceDiscovery & operator=(
ServiceDiscovery &&
)
function ~ServiceDiscovery🔗
~ServiceDiscovery() =default
function findService🔗
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
)
Searches all services with the given messaging pattern that match the provided service description and applies a function to each of them.
Parameters:
- service service string to search for, a nullopt corresponds to a wildcard
- instance instance string to search for, a nullopt corresponds to a wildcard
- event event string to search for, a nullopt corresponds to a wildcard
- callableForEach callable to apply to all matching services
- pattern messaging pattern of the service to search
Updated on 31 May 2022 at 11:34:55 CEST