DynamicLibrary Class Reference
Dynamic library. More...
#include <static.h>
Public Member Functions | |
auto | Load (const std::string &path) -> bool |
Load a dynamic library. More... | |
auto | Unload () -> bool |
Unload the dynamic library. More... | |
auto | GetFuncPointer (const std::string &symbol) const -> void * |
Retrieve the address of an exported symbol. More... | |
Detailed Description
Dynamic library.
Platform independent dynamic library class.
Member Function Documentation
|
inline |
Retrieve the address of an exported symbol.
- Return values
-
nullptr Failed to get address.
|
inline |
Load a dynamic library.
- Parameters
-
path Path to a library file.
- Return values
-
true Succeeded to load. false Failed to load.
|
inline |
Unload the dynamic library.
- Return values
-
true Succeeded to unload. false Failed to unload.