#include <KeosDynLib.h>
Public Member Functions | |
| CDynLib (const String &strName) | |
| Default constructor - used by DynLibManager. | |
| ~CDynLib () | |
| Default destructor. | |
| void | Load () |
| Load the library. | |
| void | Unload () |
| Unload the library. | |
| const String & | GetName (void) const |
| Get the name of the library. | |
| void * | GetSymbol (const String &strName) const throw () |
| Returns the address of the given symbol from the loaded library. | |
Protected Member Functions | |
| String | DynlibError (void) |
| Return error information in library loading. | |
Protected Attributes | |
| String | m_strName |
| Name of the library. | |
| DYNLIB_HANDLE | m_hInst |
| Handle to the loaded library. | |
This class holds the data required to get symbols from libraries loaded at run-time (i.e. from DLL's for so's).
Definition at line 44 of file KeosDynLib.h.
| Keos::CDynLib::CDynLib | ( | const String & | strName | ) |
Default constructor - used by DynLibManager.
| strName | Name of the library. |
Definition at line 38 of file KeosDynLib.cpp.
| Keos::CDynLib::~CDynLib | ( | ) |
| String Keos::CDynLib::DynlibError | ( | void | ) | [protected] |
Return error information in library loading.
Definition at line 91 of file KeosDynLib.cpp.
| void Keos::CDynLib::Load | ( | ) |
Load the library.
Definition at line 49 of file KeosDynLib.cpp.
References DYNLIB_EXCEPT, DynlibError(), Keos::ILogger::Log(), m_hInst, and m_strName.
Referenced by Keos::CDynLibManager::Load().
| void Keos::CDynLib::Unload | ( | ) |
Unload the library.
Definition at line 71 of file KeosDynLib.cpp.
References DYNLIB_EXCEPT, DynlibError(), Keos::ILogger::Log(), m_hInst, and m_strName.
Referenced by Keos::CDynLibManager::Unload().
| const String& Keos::CDynLib::GetName | ( | void | ) | const [inline] |
Get the name of the library.
Definition at line 77 of file KeosDynLib.h.
Referenced by Keos::CDynLibManager::Unload().
| void * Keos::CDynLib::GetSymbol | ( | const String & | strName | ) | const throw () |
Returns the address of the given symbol from the loaded library.
| strName | The name of the symbol to search for. |
Definition at line 85 of file KeosDynLib.cpp.
Referenced by Keos::CPlatformManager::CPlatformManager(), and Keos::CRoot::LoadPlugin().
String Keos::CDynLib::m_strName [protected] |
DYNLIB_HANDLE Keos::CDynLib::m_hInst [protected] |
1.5.1-p1