Helper class for constructing InterfaceMap instances based on service implementations or service factories. More...
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 () | |
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.
|
inline |
Constructor taking a service implementation pointer.
impl | A service implementation pointer, which must be castable to a all specified service interfaces. |
|
inline |
Constructor taking a service factory.
factory | A service factory. |
|
inline |
ServiceFactory* MakeInterfaceMap< I1, I2, I3 >::m_factory |
Referenced by MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
I1* MakeInterfaceMap< I1, I2, I3 >::m_interface1 |
Referenced by MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
I2* MakeInterfaceMap< I1, I2, I3 >::m_interface2 |
Referenced by MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().
I3* MakeInterfaceMap< I1, I2, I3 >::m_interface3 |
Referenced by MakeInterfaceMap< I1, I2, I3 >::operator InterfaceMap().