Skip to content

iox::roudi::ServiceRegistry🔗

Public Classes🔗

Name
struct instance_t

Public Types🔗

Name
using capro::IdString_t CaproIdString_t
using cxx::vector< CaproIdString_t, MAX_INSTANCES_PER_SERVICE > InstanceSet_t
using std::map< CaproIdString_t, instance_t > serviceMap_t

Public Functions🔗

Name
void add(const CaproIdString_t & service, const CaproIdString_t & instance)
void remove(const CaproIdString_t & service, const CaproIdString_t & instance)
void find(InstanceSet_t & instances, const CaproIdString_t & service, const CaproIdString_t & instance =capro::AnyInstanceString) const
const serviceMap_t & getServiceMap() const

Public Attributes🔗

Name
constexpr uint32_t MAX_INSTANCES_PER_SERVICE

Public Types Documentation🔗

using CaproIdString_t🔗

using iox::roudi::ServiceRegistry::CaproIdString_t =  capro::IdString_t;

using InstanceSet_t🔗

using iox::roudi::ServiceRegistry::InstanceSet_t =  cxx::vector<CaproIdString_t, MAX_INSTANCES_PER_SERVICE>;

using serviceMap_t🔗

using iox::roudi::ServiceRegistry::serviceMap_t =  std::map<CaproIdString_t, instance_t>;

Public Functions Documentation🔗

function add🔗

void add(
    const CaproIdString_t & service,
    const CaproIdString_t & instance
)

function remove🔗

void remove(
    const CaproIdString_t & service,
    const CaproIdString_t & instance
)

function find🔗

void find(
    InstanceSet_t & instances,
    const CaproIdString_t & service,
    const CaproIdString_t & instance =capro::AnyInstanceString
) const

function getServiceMap🔗

const serviceMap_t & getServiceMap() const

Public Attributes Documentation🔗

variable MAX_INSTANCES_PER_SERVICE🔗

static constexpr uint32_t MAX_INSTANCES_PER_SERVICE = 100u;

Updated on 31 May 2022 at 15:29:16 CEST