|
|||
|
|||
|
#include <dynamic.h>
Inheritance diagram for DLLFactory< T >:


Public Member Functions | |
| DLLFactory (InspIRCd *Instance, const char *fname, const char *func_name=0) | |
| Default constructor. | |
| ~DLLFactory () | |
| The destructor deletes the ModuleFactory pointer. | |
Public Attributes | |
| T * | factory |
| The ModuleFactory pointer. | |
Its job is to finally call the init_module function and obtain a pointer to a ModuleFactory. This template is a container for ModuleFactory itself, so that it may 'plug' into ModuleFactory and provide module loading capabilities transparently.
Definition at line 96 of file dynamic.h.
|
||||||||||||||||||||
|
Default constructor. This constructor passes its paramerers down through DLLFactoryBase and then DLLManager to load the module, then calls the factory function to retrieve a pointer to a ModuleFactory class. It is then down to the core to call the ModuleFactory::CreateModule() method and receive a Module* which it can insert into its module lists. Definition at line 105 of file dynamic.h. References DLLFactoryBase::factory_func. 00105 : DLLFactoryBase(Instance, fname, func_name) 00106 { 00107 if (factory_func) 00108 factory = reinterpret_cast<T*>(factory_func()); 00109 else 00110 factory = reinterpret_cast<T*>(-1); 00111 }
|
|
|||||||||
|
The destructor deletes the ModuleFactory pointer.
Definition at line 115 of file dynamic.h.
|
|
|||||
|
The ModuleFactory pointer.
|