1 #ifndef _SERVICE_REGISTRY_H 2 #define _SERVICE_REGISTRY_H 12 #include <service_record.h> 32 std::vector<ServiceRecord *> m_services;
33 std::map<std::string, ServiceRecord *> m_uuids;
ServiceRegistry Singleton class.
Definition: service_registry.h:20
std::string getUUID(ServiceRecord *service)
Return the uuid of the registration record for a given service.
Definition: service_registry.cpp:160
Definition: service_record.h:15
bool unRegisterService(ServiceRecord *service)
Unregister a service with the service registry.
Definition: service_registry.cpp:85
bool registerService(ServiceRecord *service)
Register a service with the service registry.
Definition: service_registry.cpp:52
static ServiceRegistry * getInstance()
Return the singleton instance of the service registry.
Definition: service_registry.cpp:39
ServiceRecord * findService(const std::string &name)
Find a service that is registered with the service registry.
Definition: service_registry.cpp:142