C++ Micro Services
2.1.1
A dynamic OSGi-like C++ service registry
|
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. | |
MakeInterfaceMap (ServiceFactory *factory) | |
Constructor taking a service factory. | |
operator InterfaceMap () | |
template<class Impl > | |
MakeInterfaceMap (Impl *impl) | |
Constructor taking a service implementation pointer. | |
MakeInterfaceMap (ServiceFactory *factory) | |
Constructor taking a service factory. | |
operator InterfaceMap () | |
template<class Impl > | |
MakeInterfaceMap (Impl *impl) | |
Constructor taking a service implementation pointer. | |
MakeInterfaceMap (ServiceFactory *factory) | |
Constructor taking a service factory. | |
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 |
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 |
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 |
|
inline |
|
inline |
ServiceFactory * MakeInterfaceMap< I1, I2, I3 >::m_factory |
I1 * MakeInterfaceMap< I1, I2, I3 >::m_interface1 |
I2 * MakeInterfaceMap< I1, I2, I3 >::m_interface2 |
I3 * MakeInterfaceMap< I1, I2, I3 >::m_interface3 |