|
Medical Imaging Interaction Toolkit
2026.06.00
Medical Imaging Interaction Toolkit
|
Helper class for constructing InterfaceMap instances based on service implementations or service factories. More...
#include <usServiceInterface.h>

Public Member Functions | |
| template<class Impl > | |
| MakeInterfaceMap (Impl *impl) | |
| Constructor taking a service implementation pointer. More... | |
| MakeInterfaceMap (ServiceFactory *factory) | |
| Constructor taking a service factory. More... | |
| operator InterfaceMap () | |
| Conversion operator to InterfaceMap. More... | |
Public Attributes | |
| ServiceFactory * | m_factory |
| I1 * | m_interface1 |
| I2 * | m_interface2 |
| I3 * | m_interface3 |
Helper class for constructing InterfaceMap instances based on service implementations or service factories.
Example usage:
The MakeInterfaceMap supports service implementations with up to three service interfaces.
Definition at line 180 of file usServiceInterface.h.
|
inline |
Constructor taking a service implementation pointer.
| [in] | impl | A service implementation pointer, which must be castable to a all specified service interfaces. |
Definition at line 194 of file usServiceInterface.h.
|
inline |
Constructor taking a service factory.
| [in] | factory | A service factory. |
Definition at line 206 of file usServiceInterface.h.
|
inline |
Conversion operator to InterfaceMap.
Definition at line 219 of file usServiceInterface.h.
References us::InsertInterfaceType(), us::MakeInterfaceMap< I1, I2, I3 >::m_factory, us::MakeInterfaceMap< I1, I2, I3 >::m_interface1, us::MakeInterfaceMap< I1, I2, I3 >::m_interface2, and us::MakeInterfaceMap< I1, I2, I3 >::m_interface3.
| ServiceFactory* us::MakeInterfaceMap< I1, I2, I3 >::m_factory |
Definition at line 182 of file usServiceInterface.h.
Referenced by us::MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
| I1* us::MakeInterfaceMap< I1, I2, I3 >::m_interface1 |
Definition at line 183 of file usServiceInterface.h.
Referenced by us::MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
| I2* us::MakeInterfaceMap< I1, I2, I3 >::m_interface2 |
Definition at line 184 of file usServiceInterface.h.
Referenced by us::MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
| I3* us::MakeInterfaceMap< I1, I2, I3 >::m_interface3 |
Definition at line 185 of file usServiceInterface.h.
Referenced by us::MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().