|
ACF $AcfVersion:0$
|
Standard generic implementation of the composed factory. More...
#include <TComposedFactory.h>
Public Types | |
| typedef TIFactory< InterfaceType > | FactoryInterface |
Public Types inherited from istd::TIFactory< InterfaceType > | |
| typedef InterfaceType | InterfaceType |
Public Types inherited from istd::IFactoryInfo | |
| typedef QSet< QByteArray > | KeyList |
Public Member Functions | |
| template<class FactoryImpl > | |
| bool | RegisterFactory (const QByteArray &typeId) |
| virtual IFactoryInfo::KeyList | GetFactoryKeys () const override |
| Returns all possible keys for this factory. | |
| virtual istd::TUniqueInterfacePtr< InterfaceType > | CreateInstance (const QByteArray &keyId="") const override |
Create an instance of the object, mapped to the keyId keyId. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Types | |
| typedef istd::TSmartPtr< FactoryInterface > | FactoryPtr |
| typedef QList< FactoryPtr > | FactoryList |
Protected Attributes | |
| FactoryList | m_factoryList |
Standard generic implementation of the composed factory.
Definition at line 21 of file TComposedFactory.h.
| typedef TIFactory<InterfaceType> istd::TComposedFactory< InterfaceType >::FactoryInterface |
Definition at line 24 of file TComposedFactory.h.
|
protected |
Definition at line 48 of file TComposedFactory.h.
|
protected |
Definition at line 47 of file TComposedFactory.h.
|
overridevirtual |
Create an instance of the object, mapped to the keyId keyId.
| keyId |
Implements istd::TIFactory< InterfaceType >.
Definition at line 78 of file TComposedFactory.h.
References istd::TInterfacePtr< InterfaceType, PolymorphicPointerImpl >::IsValid().
|
overridevirtual |
Returns all possible keys for this factory.
Retrieves the complete set of keys (identifiers) that this factory can use to create objects. Each key corresponds to a specific object type or variant that the factory knows how to instantiate.
Implements istd::IFactoryInfo.
Definition at line 57 of file TComposedFactory.h.
|
inline |
Definition at line 27 of file TComposedFactory.h.
References istd::TComposedFactory< InterfaceType >::m_factoryList.
Referenced by ilog::CMessageContainer::RegisterMessageType().
|
protected |
Definition at line 50 of file TComposedFactory.h.
Referenced by istd::TComposedFactory< InterfaceType >::RegisterFactory().