#include <DynamicModule.h>
Public Member Functions | |
| virtual bool | load (const std::string &moduleName)=0 |
| virtual bool | unload ()=0 |
| virtual bool | isLoaded () const =0 |
| virtual DMPROC | getProcedureAddress (const std::string &name) const =0 |
Protected Member Functions | |
| virtual | ~DynamicModule () |
Platform independant class that supports dynamic linking for Windows Dynamic Link Libraries (DLL's) and Solaris/Linux Dynamic Shared Objects (DSO's).
Definition at line 24 of file DynamicModule.h.
| virtual DynamicModule::~DynamicModule | ( | ) | [protected, virtual] |
This should be destroyed by calling PlugInManagerServices::destroyDynamicModule.
Definition at line 83 of file DynamicModule.h.
| virtual bool DynamicModule::load | ( | const std::string & | moduleName | ) | [pure virtual] |
Loads the Dynamic Library.
This method loads the Dynamic Link Library (DLL) or Dynamic Shared Object (DSO) into memory.
| moduleName | Full path name for the dynamic library. |
| virtual bool DynamicModule::unload | ( | ) | [pure virtual] |
Remove the dynamic library from memory.
This method removes the Dynamic Link Library (DLL) or Dynamic Shared Object (DSO) from memory.
| virtual bool DynamicModule::isLoaded | ( | ) | const [pure virtual] |
Has the module been loaded?
This method returns true if the Dynamic Link Library (DLL) or the Dynamic Shared Object (DSO) has been loaded and is resident in memory.
| virtual DMPROC DynamicModule::getProcedureAddress | ( | const std::string & | name | ) | const [pure virtual] |
Gets the address of a library procedure.
This method returns the address of the specified exported Dynamic Link Library (DLL) or the Dynamic Shared Object (DSO) procedure or function. If the procedure or function does not exist, NULL is returned.
| name | The string name of the exported procedure or function. |