Portabe Dynamic Link Library Loader. More...
#include <mia/core/dlloader.hh>
Public Member Functions | |
CDLLoader (const char *name, int flags) | |
void * | get_function (const char *name) const |
const std::string & | get_name () const |
void | set_keep_library () |
void | set_unload_library () |
tell the loader that the library should be unloaded at destruction More... | |
~CDLLoader () | |
Portabe Dynamic Link Library Loader.
This class provides a portable way to load dynamic link libraries.
Definition at line 36 of file dlloader.hh.
CDLLoader::CDLLoader | ( | const char * | name, |
int | flags | ||
) |
Constructor that loads the DLL. If the Library name is not found, the constructor will throw a std::runtime_error .
name | name of the library |
flags | flags used during loading (only used in UNIX) |
CDLLoader::~CDLLoader | ( | ) |
Destructor; currently it does nothing (should unload the library), but currently it is not ensured that the code is not referenced from some plug-in.
void* CDLLoader::get_function | ( | const char * | name | ) | const |
Get a function address based on its name
name | of the function to look up |
const std::string& CDLLoader::get_name | ( | ) | const |
void CDLLoader::set_keep_library | ( | ) |
void CDLLoader::set_unload_library | ( | ) |
tell the loader that the library should be unloaded at destruction