ucommon
|
The DSO dynamic loader class is used to load object files. More...
#include <file.h>
Public Member Functions | |
DSO (const char *filename) | |
Construct and load a DSO object file. | |
DSO (const char *filename, bool resolve) | |
const char * | getError (void) |
Retrieve error indicator associated with DSO failure. | |
bool | isValid (void) |
See if DSO object is valid. | |
addr_t | operator[] (const char *sym) |
Lookup a symbol in the loaded file. | |
virtual | ~DSO () |
Detach a DSO object from running memory. | |
Static Public Member Functions | |
static void | dynunload (void) |
static DSO * | getObject (const char *name) |
Find a specific DSO object by filename. | |
static void | setDebug (void) |
Install debug handler... | |
Protected Member Functions | |
void | loader (const char *filename, bool resolve) |
The DSO dynamic loader class is used to load object files.
On elf based systems this is typically done with dlopen. A dummy stub class is generated for non-dl capable systems.
ost::DSO::DSO | ( | const char * | filename | ) | [inline] |
const char* ost::DSO::getError | ( | void | ) | [inline] |
static DSO* ost::DSO::getObject | ( | const char * | name | ) | [static] |
bool ost::DSO::isValid | ( | void | ) |
See if DSO object is valid.