EDL Factory Interface allows one part of the EDL infrastructure to register class creation methods identified by either GUIDs and /or names (strings) and then another part of the EDL infrastructure to request the creation of instances of one or more of these classes by quoting the same GUID or name.
More...
#include <iedlfactory.h>
EDL Factory Interface allows one part of the EDL infrastructure to register class creation methods identified by either GUIDs and /or names (strings) and then another part of the EDL infrastructure to request the creation of instances of one or more of these classes by quoting the same GUID or name.
EDL Class Factory
◆ createInstance()
virtual IEDLObjectPtr IEDLClassFactory::createInstance |
( |
const CClassID & | id, |
|
|
CClassParams * | pParams = NULL ) |
|
pure virtual |
Creates the registered class by CClassID.
- Parameters
-
id | Class GUID |
pParams | Parameters for class initialization |
- Returns
- IEDLObjectPtr A smart pointer to EDLObject interface to newly created class
◆ createInstanceJawsMako()
Creates the registered class by CClassID.
- Parameters
-
id | Class GUID |
pParams | Parameters for class initialization |
factory | IEDLClassFactory Pointer to JawsMako |
- Returns
- IEDLObjectPtr A smart pointer to EDLObject interface to newly created class
◆ findNamedClass()
virtual bool IEDLClassFactory::findNamedClass |
( |
const EDLSysString & | strName, |
|
|
CClassID & | id ) |
|
pure virtual |
Retrieve GUID registered under the string name.
- Parameters
-
strName | Name to find |
id | Placeholder for result |
- Returns
- bool True on success
◆ getSingleton()
virtual IEDLObjectPtr IEDLClassFactory::getSingleton |
( |
const CClassID & | id | ) |
|
|
pure virtual |
Creates the EDL singleton (for example FontLibrary or ColorManager)
- Parameters
-
- Returns
- IEDLObjectPtr A smart pointer to the IEDLObject
◆ registerClass()
virtual bool IEDLClassFactory::registerClass |
( |
const CClassID & | id, |
|
|
creatorFunc | f ) |
|
pure virtual |
Register a GUID with creator function.
- Parameters
-
id | Class GUID |
f | Function that creates the class |
- Returns
- bool True on success
◆ registerNamedClass()
virtual bool IEDLClassFactory::registerNamedClass |
( |
const EDLSysString & | strName, |
|
|
const CClassID & | id, |
|
|
bool | overwrite = true ) |
|
pure virtual |
Register a GUID under a string name.
- Parameters
-
strName | Name for registartion |
id | Class GUID |
overwrite | If overwrite is true then overwites old name registration else returns false |
- Returns
- bool True on success
The documentation for this class was generated from the following file: