18 #ifndef INCLUDED_DLLLOADER 19 #define INCLUDED_DLLLOADER 97 #endif // INCLUDED_DLLLOADER DllLoader(const char *name, CLogger::ELogMethod loadErrorLogMethod=CLogger::Error)
Prepare the DLL loader.
Definition: DllLoader.cpp:135
void Unload()
Unload the library, if it has been loaded already.
Definition: DllLoader.cpp:171
ELogMethod
Definition: CLogger.h:50
const char * m_Name
Definition: DllLoader.h:86
ERROR_TYPE(DllLoader, DllNotLoaded)
bool IsLoaded() const
Check whether the library has been loaded successfully.
Definition: DllLoader.cpp:146
void * m_Handle
Definition: DllLoader.h:87
~DllLoader()
Definition: DllLoader.cpp:140
#define T(string_literal)
Definition: secure_crt.cpp:76
Definition: DllLoader.h:28
CLogger::ELogMethod m_LoadErrorLogMethod
Definition: DllLoader.h:88
bool LoadDLL()
Attempt to load and initialise the library, if not already.
Definition: DllLoader.cpp:151
void LoadSymbol(const char *name, T &fptr) const
Attempt to load a named symbol from the library.
Definition: DllLoader.h:92
static void OverrideLibdir(const char *libdir)
Override the build-time setting of the directory to search for libraries.
Definition: DllLoader.cpp:210
void LoadSymbolInternal(const char *name, void **fptr) const
Definition: DllLoader.cpp:180
void LogLoadError(const char *errors)
Definition: DllLoader.cpp:194