95 void openLib(
const std::string &path);
Header file for dynamic library handling functions.
void * getFunctionDynamicLib(void *moduleHandle, const char *name)
Retrieves a function or symbol from a dynamic library.
Definition: DynamicLib.cpp:16
Exception class for handling DLL-related errors in the barcade project.
Interface for display modules in the barcade project.
Defines the module types used in the Loader namespace.
Exception class for handling DLL-related errors.
Definition: Exception.hpp:29
A class for dynamically loading and managing modules.
Definition: LibLoader.hpp:32
~LibLoader()
Destructor for the LibLoader class.
Definition: LibLoader.cpp:34
Loader::ModuleType_t _moduleType
Definition: LibLoader.hpp:36
GetModuleTypeFct _getModuleType
Definition: LibLoader.hpp:39
std::string _modulePath
Definition: LibLoader.hpp:35
T * initEntryPoint()
Initializes and retrieves an instance of a class from a dynamically loaded library.
Definition: LibLoader.hpp:67
Loader::ModuleType_t(* GetModuleTypeFct)()
Definition: LibLoader.hpp:38
LibLoader()=default
Constructor for the LibLoader class.
Loader::ModuleType_t getModuleType() const
Get the type of the loaded module.
Definition: LibLoader.hpp:47
void openLib(const std::string &path)
Opens a shared library from the specified file path.
Definition: LibLoader.cpp:11
const char * getModulePath() const
Get the path of the loaded module.
Definition: LibLoader.hpp:53
void closeLib()
Closes the currently loaded library.
Definition: LibLoader.cpp:28
void * _moduleHandle
Definition: LibLoader.hpp:34
@ TYPE_COUNT
Definition: LoaderType.hpp:40