Resource holding data about a dynamic library.
More...
#include <MyGUI_DynLib.h>
Public Member Functions |
bool | load () |
void | unload () |
std::string | getName (void) const |
| Get the name of the library.
|
void * | getSymbol (const std::string &strName) const throw () |
Protected Member Functions |
| DynLib (const std::string &name) |
| ~DynLib () |
std::string | dynlibError (void) |
| Gets the last loading error.
|
Protected Attributes |
std::string | mName |
| Name of library.
|
void * | mInstance |
| Handle to the loaded library.
|
Detailed Description
Resource holding data about a dynamic library.
Definition at line 64 of file MyGUI_DynLib.h.
Constructor & Destructor Documentation
MyGUI::DynLib::DynLib |
( |
const std::string & |
name | ) |
|
|
protected |
MyGUI::DynLib::~DynLib |
( |
| ) |
|
|
protected |
Member Function Documentation
std::string MyGUI::DynLib::dynlibError |
( |
void |
| ) |
|
|
protected |
std::string MyGUI::DynLib::getName |
( |
void |
| ) |
const |
|
inline |
void * MyGUI::DynLib::getSymbol |
( |
const std::string & |
strName | ) |
const throw () |
Returns the address of the given symbol from the loaded library.
- Parameters
-
strName | The name of the symbol to search for |
- Returns
- If the function succeeds, the returned value is a handle to the symbol. If the function fails, the returned value is nullptr.
Definition at line 76 of file MyGUI_DynLib.cpp.
bool MyGUI::DynLib::load |
( |
| ) |
|
void MyGUI::DynLib::unload |
( |
| ) |
|
Friends And Related Function Documentation
Field Documentation
void* MyGUI::DynLib::mInstance |
|
protected |
std::string MyGUI::DynLib::mName |
|
protected |
The documentation for this class was generated from the following files: