6#include <QtCore/QByteArray>
19template <
class Interface,
class Implementation>
41template <
class Interface,
class Implementation>
51template <
class Interface,
class Implementation>
56 retVal.insert(m_keyId);
62template <
class Interface,
class Implementation>
65 if (keyId.isEmpty() || (keyId == m_keyId)){
QSet< QByteArray > KeyList
Generic interface for a factory.
Template based object factory interface.
virtual IFactoryInfo::KeyList GetFactoryKeys() const override
Returns all possible keys for this factory.
TSingleFactory(const QByteArray &keyId)
Implementation ImplementationType
virtual istd::TUniqueInterfacePtr< Interface > CreateInstance(const QByteArray &keyId="") const override
Create an instance of the object, mapped to the keyId keyId.
TIFactory< Interface > FactoryInterface
Unique ownership smart pointer for interface types.