![]() |
ICF 3.1.1.10
Technical documentation of ICF Libraries
|
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 | |
| bool | RegisterFactory (istd::TOptDelPtr< FactoryInterface > &&factoryPtr) |
Registers object factory factoryPtr that will be mapped to the keyId. | |
| virtual IFactoryInfo::KeyList | GetFactoryKeys () const |
| Returns all posible keys for this factory. | |
| virtual std::unique_ptr< InterfaceType > | CreateInstance (const QByteArray &keyId="") const |
Create an instance of the object, mapped to the keyId keyId. | |
Public Member Functions inherited from istd::TIFactory< InterfaceType > | |
Public Member Functions inherited from istd::IFactoryInfo | |
Protected Types | |
| typedef istd::TOptDelPtr< FactoryInterface > | FactoryPtr |
| typedef std::vector< FactoryPtr > | FactoryList |
Protected Attributes | |
| FactoryList | m_factoryList |
Standard generic implementation of the composed factory.
Definition at line 25 of file TComposedFactory.h.
| TIFactory<InterfaceType> istd::TComposedFactory< InterfaceType >::FactoryInterface |
Definition at line 28 of file TComposedFactory.h.
|
protected |
Definition at line 45 of file TComposedFactory.h.
|
protected |
Definition at line 44 of file TComposedFactory.h.
|
virtual |
Create an instance of the object, mapped to the keyId keyId.
| keyId |
Implements istd::TIFactory< InterfaceType >.
Definition at line 90 of file TComposedFactory.h.
|
virtual |
Returns all posible keys for this factory.
Implements istd::IFactoryInfo.
Definition at line 71 of file TComposedFactory.h.
| bool istd::TComposedFactory< InterfaceType >::RegisterFactory | ( | istd::TOptDelPtr< FactoryInterface > && | factoryPtr | ) |
Registers object factory factoryPtr that will be mapped to the keyId.
| factoryPtr | pointer to slave factory object. It cannot be nullptr. |
Definition at line 54 of file TComposedFactory.h.
Referenced by ilog::CMessageContainer::RegisterMessageType().
|
protected |
Definition at line 47 of file TComposedFactory.h.
© Witold Gantzke and Kirill Lepskiy