#include <DllLoader.h>
|
static void | OverrideLibdir (const char *libdir) |
| Override the build-time setting of the directory to search for libraries. More...
|
|
Prepare the DLL loader.
Does no actual work.
- Parameters
-
name | base name of the library (from which we'll derive "name.dll", "libname_dbg.so", etc). Pointer must remain valid for this object's lifetime (which is fine if you just use a string literal). |
loadErrorLogMethod | Allows to set the CLogger log level that is used when the DllLoader reports loading errors. |
DllLoader::~DllLoader |
( |
| ) |
|
bool DllLoader::IsLoaded |
( |
| ) |
const |
Check whether the library has been loaded successfully.
Returns false before LoadDLL has been called; otherwise returns the same as LoadDLL did.
bool DllLoader::LoadDLL |
( |
| ) |
|
Attempt to load and initialise the library, if not already.
Can be harmlessly called multiple times. Returns false if unsuccessful.
template<typename T >
void DllLoader::LoadSymbol |
( |
const char * |
name, |
|
|
T & |
fptr |
|
) |
| const |
void DllLoader::LoadSymbolInternal |
( |
const char * |
name, |
|
|
void ** |
fptr |
|
) |
| const |
|
private |
void DllLoader::LogLoadError |
( |
const char * |
errors | ) |
|
|
private |
void DllLoader::OverrideLibdir |
( |
const char * |
libdir | ) |
|
|
static |
Override the build-time setting of the directory to search for libraries.
void DllLoader::Unload |
( |
| ) |
|
Unload the library, if it has been loaded already.
(Usually not needed, since the destructor will unload it.)
void* DllLoader::m_Handle |
|
private |
const char* DllLoader::m_Name |
|
private |
The documentation for this class was generated from the following files: