#include <class_factory_intf.h>
Inherits adtf::ucom::ant::IObject.
|
|
| ~IClassFactory ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
|
| ~IObject ()=default |
| | Protected destructor --> Only the final implementation can be destroyed!
|
| |
The IClassFactory interface provides methods for creating new class instances.
◆ ADTF_IID()
| adtf::ucom::ant::IClassFactory::ADTF_IID |
( |
IClassFactory | , |
|
|
"class_factory.ant.ucom.adtf.iid" | ) |
◆ CreateInstance()
| virtual tResult adtf::ucom::ant::IClassFactory::CreateInstance |
( |
const char * | strCID, |
|
|
iobject_ptr< IObject > & | oObject, |
|
|
const tChar * | strNameOfObject = "" ) const |
|
pure virtual |
Creates a new instance. The CreateInstance method creates a single uninitialized object of the class associated with a specified class identifier.
- Parameters
-
| [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. |
- Returns
- Returns a standard result code.
- Return values
-
◆ GetClasses()
Enumerates all classes supported by the class factory and pushes it to lstOfClasses This method should be used for debugging or testing purposes only.
- Parameters
-
- Returns
- Returns a standard result code.
- See also
- object_list, object_vector.
The documentation for this class was generated from the following file: