Connection adapter factory interface. More...
#include <connection_adapter_factory.hpp>
Classes | |
struct | FactoryTriple |
Public Types | |
typedef function< ConnectionAdapterSharedPtr(ClientIdManager &clientIdManager)> | ConnectionAdapterCreateFunc |
typedef function< ConnectionAdapter::Parameters()> | ConnectionAdapterParametersCreateFunc |
typedef map< string, shared_ptr< FactoryTriple > > | FactoryContainer |
typedef struct kanzi::connect::ConnectionAdapterObjectFactory::FactoryTriple | FactoryTriple |
Public Member Functions | |
ConnectionAdapterObjectFactory () | |
C++ constructor. More... | |
ConnectionAdapterSharedPtr | createAdapterInstance (const string &identifier, ClientIdManager &clientIdManager) |
Instantiate adapter of specified type. More... | |
ConnectionAdapter::Parameters | createDefaultAdapterParameters (const string &identifier) |
Instantiate default parameters for given type adapter. More... | |
ConnectionAdapter::Parameters | createP2PAdapterParameters (const string &identifier) |
Instantiate default parameters for given type adapter. More... | |
ConnectDomainSharedPtr | getDomain () const |
Retrieve the connect domain. More... | |
void | registerAdapterType (const string &identifier, ConnectionAdapterCreateFunc createFunc, ConnectionAdapter::Parameters defaultParameters=ConnectionAdapter::Parameters(), ConnectionAdapter::Parameters p2pParameters=ConnectionAdapter::Parameters()) |
Register new adapter type. More... | |
void | setDomain (ConnectDomainSharedPtr domain) |
Store the domain where factory operates in. More... | |
void | unregisterAdapterType (const string &identifier) |
Unregisters given adapter type. More... | |
Connection adapter factory interface.
typedef function<ConnectionAdapterSharedPtr(ClientIdManager& clientIdManager)> kanzi::connect::ConnectionAdapterObjectFactory::ConnectionAdapterCreateFunc |
typedef function<ConnectionAdapter::Parameters()> kanzi::connect::ConnectionAdapterObjectFactory::ConnectionAdapterParametersCreateFunc |
typedef map<string, shared_ptr<FactoryTriple> > kanzi::connect::ConnectionAdapterObjectFactory::FactoryContainer |
typedef struct kanzi::connect::ConnectionAdapterObjectFactory::FactoryTriple kanzi::connect::ConnectionAdapterObjectFactory::FactoryTriple |
kanzi::connect::ConnectionAdapterObjectFactory::ConnectionAdapterObjectFactory | ( | ) |
C++ constructor.
|
inline |
Instantiate adapter of specified type.
|
inline |
Instantiate default parameters for given type adapter.
|
inline |
Instantiate default parameters for given type adapter.
ConnectDomainSharedPtr kanzi::connect::ConnectionAdapterObjectFactory::getDomain | ( | ) | const |
Retrieve the connect domain.
|
inline |
Register new adapter type.
createFunc | function object to invoke in order to create instance of adapter |
void kanzi::connect::ConnectionAdapterObjectFactory::setDomain | ( | ConnectDomainSharedPtr | domain | ) |
Store the domain where factory operates in.
domain | the operating domain. ownership not transfered. |
|
inline |
Unregisters given adapter type.