|
ACF $AcfVersion:0$
|
Base interface providing information about factory-producible objects. More...
#include <IFactoryInfo.h>
Public Types | |
| typedef QSet< QByteArray > | KeyList |
Public Member Functions | |
| virtual KeyList | GetFactoryKeys () const =0 |
| Returns all possible keys for this factory. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Base interface providing information about factory-producible objects.
IFactoryInfo is part of the ACF factory pattern implementation. It provides metadata about objects that can be created by factory classes, specifically the keys (identifiers) that can be used to instantiate different types of objects through the factory.
This interface is typically implemented by factory classes to advertise which object types they can create. The keys returned by GetFactoryKeys() serve as identifiers that clients can use with the factory's CreateInstance() or similar methods.
Factory keys are QByteArray values that uniquely identify object types within the factory. The format and naming convention for keys is typically defined by the specific factory implementation, but common practices include:
Definition at line 98 of file IFactoryInfo.h.
| typedef QSet<QByteArray> istd::IFactoryInfo::KeyList |
Definition at line 101 of file IFactoryInfo.h.
|
pure virtual |
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.
Implemented in i2d::CObject2dFactory, iattr::CStandardAttributesFactory, icomp::TFactoryMember< Interface >, icomp::TSimComponentsFactory< Base >, istd::TComposedFactory< InterfaceType >, istd::TComposedFactory< Interface >, and istd::TSingleFactory< Interface, Implementation >.