Medical Imaging Interaction Toolkit
2016.11.0
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. |
Definition at line 191 of file usServiceObjects.cpp.
References us::ServiceObjectsBase::GetServiceInterfaceMap().
ServiceReferenceU us::ServiceObjects< void >::GetServiceReference | ( | ) | const |
Returns the ServiceReference for this ServiceObjects object.
Definition at line 201 of file usServiceObjects.cpp.
References us::ServiceObjectsBase::GetReference().
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. |
Definition at line 196 of file usServiceObjects.cpp.
References us::ServiceObjectsBase::UngetService().