18#ifndef INCLUDED_DLLLOADER
19#define INCLUDED_DLLLOADER
80 static CStr
GenerateFilename(
const CStr& name,
const CStr& suffix,
const CStr& extension);
ERROR_TYPE(DllLoader, DllNotLoaded)
ELogMethod
Definition: CLogger.h:54
@ Error
Definition: CLogger.h:56
Definition: DllLoader.h:30
void LogLoadError(const char *errors)
Definition: DllLoader.cpp:193
void Unload()
Unload the library, if it has been loaded already.
Definition: DllLoader.cpp:170
void * m_Handle
Definition: DllLoader.h:90
const char * m_Name
Definition: DllLoader.h:89
DllLoader(const char *name, CLogger::ELogMethod loadErrorLogMethod=CLogger::Error)
Prepare the DLL loader.
Definition: DllLoader.cpp:134
bool LoadDLL()
Attempt to load and initialise the library, if not already.
Definition: DllLoader.cpp:150
void LoadSymbolInternal(const char *name, void **fptr) const
Definition: DllLoader.cpp:179
~DllLoader()
Definition: DllLoader.cpp:139
static CStr GenerateFilename(const CStr &name, const CStr &suffix, const CStr &extension)
Definition: DllLoader.cpp:71
bool IsLoaded() const
Check whether the library has been loaded successfully.
Definition: DllLoader.cpp:145
static void OverrideLibdir(const char *libdir)
Override the build-time setting of the directory to search for libraries.
Definition: DllLoader.cpp:209
void LoadSymbol(const char *name, T &fptr) const
Attempt to load a named symbol from the library.
Definition: DllLoader.h:95
CLogger::ELogMethod m_LoadErrorLogMethod
Definition: DllLoader.h:91
#define T(string_literal)
Definition: secure_crt.cpp:77