MyGUI 3.4.3
|
Resource holding data about a dynamic library. More...
#include <MyGUI_DynLib.h>
Public Member Functions | |
bool | load () |
void | unload () |
const std::string & | getName () const |
Get the name of the library. | |
void * | getSymbol (const char *strName) const noexcept |
Protected Member Functions | |
DynLib (std::string_view name) | |
std::string | dynlibError () const |
Gets the last loading error. | |
Protected Attributes | |
std::string | mName |
Name of library. | |
void * | mInstance |
Handle to the loaded library. | |
Friends | |
class | DynLibManager |
Resource holding data about a dynamic library.
Definition at line 34 of file MyGUI_DynLib.h.
|
protected |
Definition at line 30 of file MyGUI_DynLib.cpp.
|
protected |
Gets the last loading error.
Definition at line 99 of file MyGUI_DynLib.cpp.
const std::string & MyGUI::DynLib::getName | ( | ) | const |
Get the name of the library.
Definition at line 124 of file MyGUI_DynLib.cpp.
|
noexcept |
Returns the address of the given symbol from the loaded library.
strName | The null terminated name of the symbol to search for |
Definition at line 85 of file MyGUI_DynLib.cpp.
bool MyGUI::DynLib::load | ( | ) |
Load the library
Definition at line 36 of file MyGUI_DynLib.cpp.
void MyGUI::DynLib::unload | ( | ) |
Unload the library
Definition at line 67 of file MyGUI_DynLib.cpp.
|
friend |
Definition at line 36 of file MyGUI_DynLib.h.
|
protected |
Handle to the loaded library.
Definition at line 72 of file MyGUI_DynLib.h.
|
protected |
Name of library.
Definition at line 69 of file MyGUI_DynLib.h.