Medical Imaging Interaction Toolkit
2024.12.99-0da743f6
Medical Imaging Interaction Toolkit
|
#include <usServiceObjects.h>
Public Member Functions | |
InterfaceMap | GetService () const |
void | UngetService (const InterfaceMap &service) |
ServiceReferenceU | GetServiceReference () const |
Allows multiple service objects for a service to be obtained.
This is a specialization of the ServiceObjects class template for "void", which maps to all service interface types.
Definition at line 199 of file usServiceObjects.h.
InterfaceMap us::ServiceObjects< void >::GetService | ( | ) | const |
Returns a service object as a InterfaceMap instance for the referenced service.
This method is the same as ServiceObjects<S>::GetService() except for the return type. Further, this method will always return an empty InterfaeMap object when the referenced service has been unregistered.
std::logic_error | If the ModuleContext used to create this ServiceObjects object is no longer valid. |
ServiceReferenceU us::ServiceObjects< void >::GetServiceReference | ( | ) | const |
Returns the ServiceReference for this ServiceObjects object.
void us::ServiceObjects< void >::UngetService | ( | const InterfaceMap & | service | ) |
Releases a service object for the referenced service.
This method is the same as ServiceObjects<S>::UngetService() except for the parameter type.
service | An InterfaceMap object previously provided by this ServiceObjects object. |
std::logic_error | If the ModuleContext used to create this ServiceObjects object is no longer valid. |
std::invalid_argument | If the specified service was not provided by this ServiceObjects object. |