#include <sharedlibrary.h>
Public Member Functions | |
SharedLibrary () | |
constructs a sharedLibrary object | |
~SharedLibrary () | |
destroys a sharedLibrary, releasing a previously opened library | |
bool | Open (const std::string &libName) |
opens a sharedLibrary, releasing a previously opened library | |
void * | GetProcAddress (const std::string &procName) |
returns a pointer to the exported function procName of the library or NULL if the function does not exist. | |
void | Close () |
releases a previously opened library | |
Private Attributes | |
void * | mLibHandle |
a platform dependent handle to the managed library |
The implementation of this class depends on the platform and used compiler. Up to now two implementations for Windows using the Visual C++ Compiler and Linux using the gcc compiler are available.
Definition at line 49 of file sharedlibrary.h.
|
constructs a sharedLibrary object
Definition at line 64 of file sharedlibrary.h. |
|
destroys a sharedLibrary, releasing a previously opened library
Definition at line 67 of file sharedlibrary.h. References Close(). Here is the call graph for this function: ![]() |
|
releases a previously opened library
Definition at line 60 of file sharedlibrary.cpp. References mLibHandle. Referenced by Open(), and ~SharedLibrary(). |
|
returns a pointer to the exported function procName of the library or NULL if the function does not exist.
Definition at line 50 of file sharedlibrary.cpp. References mLibHandle. |
|
opens a sharedLibrary, releasing a previously opened library
Definition at line 29 of file sharedlibrary.cpp. References Close(), and mLibHandle. Here is the call graph for this function: ![]() |
|
a platform dependent handle to the managed library
Definition at line 85 of file sharedlibrary.h. Referenced by Close(), GetProcAddress(), and Open(). |