The DSO dynamic loader class is used to load object files.
More...
#include <file.h>
|
| DSO (const char *filename) |
| Construct and load a DSO object file. More...
|
|
| DSO (const char *filename, bool resolve) |
|
const char * | getError (void) const |
| Retrieve error indicator associated with DSO failure. More...
|
|
bool | isValid (void) |
| See if DSO object is valid. More...
|
|
addr_t | operator[] (const char *sym) |
| Lookup a symbol in the loaded file.
|
|
virtual | ~DSO () |
| Detach a DSO object from running memory.
|
|
|
static void | dynunload (void) |
|
static DSO * | getObject (const char *name) |
| Find a specific DSO object by filename. More...
|
|
static void | setDebug (void) |
| Install debug handler...
|
|
|
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.
- Author
- David Sugar dyfet.nosp@m.@ost.nosp@m.el.co.nosp@m.m Dynamic class file loader.
Definition at line 808 of file file.h.
◆ DSO()
ost::DSO::DSO |
( |
const char * |
filename | ) |
|
|
inline |
Construct and load a DSO object file.
- Parameters
-
filename | pathname of object file to load. |
Definition at line 832 of file file.h.
◆ getError()
const char* ost::DSO::getError |
( |
void |
| ) |
const |
|
inline |
Retrieve error indicator associated with DSO failure.
This is often used in catch handlers.
Definition at line 844 of file file.h.
◆ getObject()
static DSO* ost::DSO::getObject |
( |
const char * |
name | ) |
|
|
static |
Find a specific DSO object by filename.
- Parameters
-
name | of DSO object file (partial). |
◆ isValid()
bool ost::DSO::isValid |
( |
void |
| ) |
|
See if DSO object is valid.
- Returns
- true if valid.
The documentation for this class was generated from the following file: