1 #ifndef _DDD_DYNAMIC_LIBRARY_H
2 #define _DDD_DYNAMIC_LIBRARY_H
55 typedef void * (*FunctionPointer)(...);
79 typedef HMODULE LibHandle_t;
81 typedef void* LibHandle_t;
101 virtual DDD_EXPORT FunctionPointer
DynamicFunction(
const char *function_name);
104 static DDD_EXPORT
bool Exists(
const char* libName);
106 static DDD_EXPORT std::string Find(
const std::string& name);
109 virtual DDD_EXPORT
bool Loaded(
void)
const;
129 LibHandle_t _dlHandle;
134 DDD_EXPORT
void SetErrorString(
const char*);
145 static bool FoundOnSystem(
const std::string& libname);
150 static LibHandle_t Open(
const std::string& libpath,
ErrorEnum& errorCode );
virtual bool Loaded(void) const
Facade to provide a simpler interface to the DDD_Log singleton. Its second purpose is for decoupling;...
Definition: DDD_LogFacade.h:50
static const std::string LIB_EXT_STRING
Definition: DDD_DynamicLibrary.h:70
const char * ErrorString() const
static void RemoveExtension(std::string &libpath)
virtual FunctionPointer DynamicFunction(const char *function_name)
ErrorEnum LastError() const
static bool Exists(const char *libName)
virtual ~DDD_DynamicLibraryPlugin()
DDD_DynamicLibraryPlugin(const char *lib_name_arg)
Load failed for unknown reason (see DynamicLibrary::ErrorString())
Definition: DDD_DynamicLibrary.h:75
ErrorEnum
Definition: DDD_DynamicLibrary.h:72
The DynamicLibrary class. A cross-platform class for loading dynamic link libraries and shared object...
Definition: DDD_DynamicLibrary.h:66
Definition: AttributeChangedEmitter.h:46