| CppUnit project page | FAQ | CppUnit home page |
#include <DynamicLibraryManager.h>
Public Types | |
| typedef void * | Symbol |
| typedef void * | LibraryHandle |
Public Member Functions | |
| DynamicLibraryManager (const std::string &libraryFileName) | |
| Loads the specified library. | |
| ~DynamicLibraryManager () | |
| Releases the loaded library.. | |
| Symbol | findSymbol (const std::string &symbol) |
| Returns a pointer on the specified symbol exported by the library. | |
Private Member Functions | |
| void | loadLibrary (const std::string &libraryName) |
| void | releaseLibrary () |
| LibraryHandle | doLoadLibrary (const std::string &libraryName) |
| void | doReleaseLibrary () |
| Symbol | doFindSymbol (const std::string &symbol) |
| std::string | getLastErrorDetail () const |
| DynamicLibraryManager (const DynamicLibraryManager ©) | |
| Prevents the use of the copy constructor. | |
| void | operator= (const DynamicLibraryManager ©) |
| Prevents the use of the copy operator. | |
Private Attributes | |
| LibraryHandle | m_libraryHandle |
| std::string | m_libraryName |
The Dynamic Library Manager provides a platform independent way to work with dynamic library. It load a specific dynamic library, and can returns specific symbol exported by the dynamic library.
If an error occurs, a DynamicLibraryManagerException is thrown.
|
|
|
|
|
|
|
|
Loads the specified library.
|
|
|
Releases the loaded library..
|
|
|
Prevents the use of the copy constructor.
|
|
|
Returns a pointer on the specified symbol exported by the library. May throw any exceptions (indicates failure).
|
|
|
Loads the specified library. May throw any exceptions (indicates failure).
|
|
|
Releases the loaded library.
The handle of the library to free is in
|
|
|
Returns a pointer on the specified symbol exported by the library.
|
|
|
Returns detailed information about doLoadLibrary() failure. Called just after a failed call to doLoadLibrary() to get extra error information.
|
|
|
Loads the specified library.
|
|
|
Prevents the use of the copy operator.
|
|
|
Releases the loaded library.
|
|
|
|
|
|
|
|
|
hosts this site. |
Send comments to: CppUnit Developers |