The IClassFactory interface provides methods for creating new class instances.
More...
The IClassFactory interface provides methods for creating new class instances.
Definition at line 23 of file class_factory_intf.h.
◆ ADTF_IID()
◆ CreateInstance()
virtual tResult 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.