ADTF
|
The IClassFactory interface provides methods for creating new class instances. More...
Public Member Functions | |
ADTF_IID (IClassFactory, "class_factory.ant.ucom.adtf.iid") | |
Marks the IClassFactory to be castable with the ucom_cast<> More... | |
virtual tResult | CreateInstance (const char *strCID, iobject_ptr< IObject > &oObject, const tChar *strNameOfObject="") const =0 |
Creates a new instance. More... | |
virtual tResult | GetClasses (iobject_enum< const IClassInfo > &lstOfClasses) const =0 |
Enumerates all classes supported by the class factory and pushes it to lstOfClasses This method should be used for debugging or testing purposes only. More... | |
Public Member Functions inherited from IObject | |
ADTF_IID (IObject, "object.ant.ucom.adtf.iid") | |
Marks the IObject to be castable with the ucom_cast() More... | |
Protected Member Functions | |
~IClassFactory ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
Protected Member Functions inherited from IObject | |
~IObject ()=default | |
Protected destructor --> Use implemented Destroy() instead of delete! | |
The IClassFactory interface provides methods for creating new class instances.
Definition at line 23 of file class_factory_intf.h.
ADTF_IID | ( | IClassFactory | , |
"class_factory.ant.ucom.adtf.iid" | |||
) |
Marks the IClassFactory
to be castable with the ucom_cast<>
|
pure virtual |
Creates a new instance.
The CreateInstance method creates a single uninitialized object of the class associated with a specified class identifier.
[in] | strCID | Class identifier of the object to create! |
[in] | strNameOfObject | ObjectName identifier (will be relevant only if the ClassFactory can handle this). |
[in,out] | oObject | Object to create to be used to communicate with the object. |
ERR_ERR_INVALID_LICENSE | no valid license found |
Return | Value of iobject_ptr<IObject>::Reset() |
|
pure virtual |
Enumerates all classes supported by the class factory and pushes it to lstOfClasses This method should be used for debugging or testing purposes only.
[in,out] | lstOfClasses | List to return the class information to. Use object_list or object_vector. |