ACF $AcfVersion:0$
Public Types | Public Member Functions | List of all members
istd::TIFactory< Interface > Class Template Referenceabstract

Generic interface for a factory. More...

#include <TIFactory.h>

Inheritance diagram for istd::TIFactory< Interface >:
istd::IFactoryInfo istd::IPolymorphic istd::TComposedFactory< Interface > i2d::CObject2dFactory iattr::CStandardAttributesFactory istd::TSingleFactory< Interface, Implementation > ibase::TComposedFactoryComp< Interface >

Public Types

typedef Interface InterfaceType
 
- Public Types inherited from istd::IFactoryInfo
typedef QSet< QByteArray > KeyList
 

Public Member Functions

virtual istd::TUniqueInterfacePtr< Interface > CreateInstance (const QByteArray &keyId="") const =0
 Create an instance of the object, mapped to the keyId keyId.
 
- Public Member Functions inherited from istd::IFactoryInfo
virtual KeyList GetFactoryKeys () const =0
 Returns all possible keys for this factory.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

template<class Interface>
class istd::TIFactory< Interface >

Generic interface for a factory.

Definition at line 18 of file TIFactory.h.

Member Typedef Documentation

◆ InterfaceType

template<class Interface >
typedef Interface istd::TIFactory< Interface >::InterfaceType

Definition at line 21 of file TIFactory.h.

Member Function Documentation

◆ CreateInstance()

template<class Interface >
virtual istd::TUniqueInterfacePtr< Interface > istd::TIFactory< Interface >::CreateInstance ( const QByteArray &  keyId = "") const
pure virtual

Create an instance of the object, mapped to the keyId keyId.

Parameters
keyId
Returns
unique pointer to created object or empty pointer if it was not possible to create it or keyId does not exist.

Implemented in i2d::CObject2dFactory, iattr::CStandardAttributesFactory, icomp::TSimComponentsFactory< Base >, istd::TComposedFactory< InterfaceType >, istd::TComposedFactory< Interface >, and istd::TSingleFactory< Interface, Implementation >.


The documentation for this class was generated from the following file: