PixelLightAPI
.
|
Dynamic library (aka "shared library") class. More...
#include <DynLib.h>
Public Member Functions | |
PLCORE_API | DynLib () |
Constructor. | |
PLCORE_API | ~DynLib () |
Destructor. | |
bool | Load (const String &sPath) |
Loads a dynamic library. | |
bool | IsLoaded () const |
Returns if the dynamic library has been loaded. | |
String | GetPath () const |
Get the path (set within 'Load()') to the dynamic library. | |
String | GetAbsPath () const |
Get the absolute path to the dynamic library. | |
void * | GetSymbol (const String &sSymbol) const |
Returns a pointer to a symbol in the library. | |
bool | Unload () |
Unloads the dynamic library. |
Dynamic library (aka "shared library") class.
PLCORE_API PLCore::DynLib::DynLib | ( | ) |
PLCORE_API PLCore::DynLib::~DynLib | ( | ) |
Destructor.
bool PLCore::DynLib::Load | ( | const String & | sPath | ) | [inline] |
Loads a dynamic library.
[in] | sPath | Path to the dynamic library |
bool PLCore::DynLib::IsLoaded | ( | ) | const [inline] |
Returns if the dynamic library has been loaded.
String PLCore::DynLib::GetPath | ( | ) | const [inline] |
Get the path (set within 'Load()') to the dynamic library.
String PLCore::DynLib::GetAbsPath | ( | ) | const [inline] |
Get the absolute path to the dynamic library.
void * PLCore::DynLib::GetSymbol | ( | const String & | sSymbol | ) | const [inline] |
Returns a pointer to a symbol in the library.
[in] | sSymbol | Name of the symbol to retrieve |
bool PLCore::DynLib::Unload | ( | ) | [inline] |
Unloads the dynamic library.
|