Nazara Engine
0.4
A fast, complete, cross-platform API designed for game development
|
Core class that represents a dynamic library loader. More...
Public Member Functions | |
DynLib () | |
Constructs a DynLib object by default. | |
DynLib (const DynLib &)=delete | |
DynLib (DynLib &&) noexcept=default | |
~DynLib () | |
Destructs the object and calls Unload. More... | |
String | GetLastError () const |
Gets the last error. More... | |
DynLibFunc | GetSymbol (const String &symbol) const |
Gets the symbol for the name. More... | |
bool | IsLoaded () const |
Checks whether the library is loaded. More... | |
bool | Load (const String &libraryPath) |
Loads the library with that path. More... | |
void | Unload () |
Unloads the library. | |
DynLib & | operator= (const DynLib &)=delete |
DynLib & | operator= (DynLib &&lib) noexcept=default |
Core class that represents a dynamic library loader.
Nz::DynLib::~DynLib | ( | ) |
Destructs the object and calls Unload.
String Nz::DynLib::GetLastError | ( | ) | const |
Gets the last error.
DynLibFunc Nz::DynLib::GetSymbol | ( | const String & | symbol | ) | const |
Gets the symbol for the name.
bool Nz::DynLib::IsLoaded | ( | ) | const |
Checks whether the library is loaded.
bool Nz::DynLib::Load | ( | const String & | libraryPath | ) |
Loads the library with that path.
libraryPath | Path of the library |