|
ACF $AcfVersion:0$
|
Template based object factory interface. More...
#include <TSingleFactory.h>
Public Types | |
| typedef Implementation | ImplementationType |
| typedef TIFactory< Interface > | FactoryInterface |
Public Types inherited from istd::TIFactory< Interface > | |
| typedef Interface | InterfaceType |
Public Types inherited from istd::IFactoryInfo | |
| typedef QSet< QByteArray > | KeyList |
Public Member Functions | |
| TSingleFactory (const QByteArray &keyId) | |
| virtual IFactoryInfo::KeyList | GetFactoryKeys () const override |
| Returns all possible keys for this factory. | |
| virtual istd::TUniqueInterfacePtr< Interface > | 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 () |
Template based object factory interface.
Definition at line 20 of file TSingleFactory.h.
| typedef TIFactory<Interface> istd::TSingleFactory< Interface, Implementation >::FactoryInterface |
Definition at line 24 of file TSingleFactory.h.
| typedef Implementation istd::TSingleFactory< Interface, Implementation >::ImplementationType |
Definition at line 23 of file TSingleFactory.h.
|
explicit |
Definition at line 42 of file TSingleFactory.h.
|
overridevirtual |
Create an instance of the object, mapped to the keyId keyId.
| keyId |
Implements istd::TIFactory< Interface >.
Definition at line 63 of file TSingleFactory.h.
|
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 52 of file TSingleFactory.h.