Medical Imaging Interaction Toolkit  2018.04.99-3ec0dd08
Medical Imaging Interaction Toolkit
us::ServiceObjects< void > Class Template Reference

#include <usServiceObjects.h>

Inheritance diagram for us::ServiceObjects< void >:
Collaboration diagram for us::ServiceObjects< void >:

Public Member Functions

InterfaceMap GetService () const
 
void UngetService (const InterfaceMap &service)
 
ServiceReferenceU GetServiceReference () const
 

Detailed Description

template<>
class us::ServiceObjects< void >

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.

See also
ServiceObjects

Definition at line 199 of file usServiceObjects.h.

Member Function Documentation

◆ GetService()

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.

Returns
A InterfaceMap object for the referenced service, which is empty if the service is not registered, the InterfaceMap returned by a ServiceFactory does not contain all the classes under which the service object was registered or the ServiceFactory threw an exception.
Exceptions
std::logic_errorIf the ModuleContext used to create this ServiceObjects object is no longer valid.
See also
ServiceObjects<S>::GetService()
UngetService()

◆ GetServiceReference()

ServiceReferenceU us::ServiceObjects< void >::GetServiceReference ( ) const

Returns the ServiceReference for this ServiceObjects object.

Returns
The ServiceReference for this ServiceObjects object.

◆ UngetService()

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.

Parameters
serviceAn InterfaceMap object previously provided by this ServiceObjects object.
Exceptions
std::logic_errorIf the ModuleContext used to create this ServiceObjects object is no longer valid.
std::invalid_argumentIf the specified service was not provided by this ServiceObjects object.
See also
ServiceObjects<S>::UngetService()
GetService()

The documentation for this class was generated from the following file: