20 #include "pedigree/kernel/ServiceManager.h" 21 #include "pedigree/kernel/utilities/new" 27 ServiceManager::ServiceManager() : m_Services()
39 m_Services.lookup(serviceName);
40 if (result.hasValue())
41 return result.value()->pFeatures;
52 m_Services.insert(serviceName, p);
57 m_Services.remove(serviceName);
63 m_Services.lookup(serviceName);
64 if (result.hasValue())
65 return result.value()->pService;
ServiceFeatures * pFeatures
Service operation enumeration.
virtual ~ServiceManager()
void removeService(const String &serviceName)
Service * pService
The Service itself.
Service * getService(const String &serviceName)
void addService(const String &serviceName, Service *s, ServiceFeatures *feats)
ServiceFeatures * enumerateOperations(const String &serviceName)