DynamicModule Class Reference

Dynamic Module. More...

#include <DynamicModule.h>

List of all members.

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 ()


Detailed Description

Dynamic Module.

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.


Constructor & Destructor Documentation

virtual DynamicModule::~DynamicModule (  )  [protected, virtual]

This should be destroyed by calling PlugInManagerServices::destroyDynamicModule.

Definition at line 83 of file DynamicModule.h.


Member Function Documentation

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.

Parameters:
moduleName Full path name for the dynamic library.
Returns:
This method returns true if the library is sucessfully loaded.

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.

Returns:
This method returns true if the library is sucessfully unloaded 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.

Returns:
The method returns true if the library has already been loaded.

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.

Parameters:
name The string name of the exported procedure or function.
Returns:
This method returns the address of the procedure or function, otherwise NULL is returned.


Software Development Kit - Opticks 4.9.0 Build 16218