#include <FactoryC.h>
Public Methods | |
FactoryC () | |
Default constructor. | |
virtual | ~FactoryC () |
Default destructor. | |
virtual void | load_plugins (const char *szDir) |
Loads plugins from specified directory (used internally). | |
virtual void | register_class (ClassDescC *pClass) |
Registers a plugins class. | |
virtual void * | create (const ClassIdC &rClassId) |
Creates new instance of class specified by class ID and returns the class. | |
virtual PajaTypes::uint32 | get_classdesc_count () |
Returns number of class descriptors. | |
virtual ClassDescC * | get_classdesc (PajaTypes::uint32) |
Returns pointer to a class descriptor of specified index. | |
virtual ClassDescC * | get_classdesc (const ClassIdC &rClassId) |
Returns pointer to a class descriptor of specified class ID, NULL id not found. | |
virtual const char * | get_classdesc_dll_name (PajaTypes::uint32) |
Returns file name of the DLL where the class descriptor of specified index has loaded. |
The class factory is used to create plugin classes. Different plugin classes are created based on their class IDs. Each plugin class has unique class ID.
|
Default constructor.
|
|
Default destructor.
|
|
Creates new instance of class specified by class ID and returns the class.
|
|
Returns pointer to a class descriptor of specified class ID, NULL id not found.
|
|
Returns pointer to a class descriptor of specified index.
|
|
Returns number of class descriptors.
|
|
Returns file name of the DLL where the class descriptor of specified index has loaded.
|
|
Loads plugins from specified directory (used internally).
|
|
Registers a plugins class.
|