#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. | |
| virtual | ~DSO () |
| Detach a DSO object from running memory. | |
| void * | operator[] (const char *sym) |
| Lookup a symbol in the loaded file. | |
| bool | isValid (void) |
| See if DSO object is valid. | |
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. | |
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] |
| ost::DSO::DSO | ( | const char * | filename, | |
| bool | resolve | |||
| ) | [inline] |
| virtual ost::DSO::~DSO | ( | ) | [virtual] |
Detach a DSO object from running memory.
| const char* ost::DSO::getError | ( | void | ) | [inline] |
Retrieve error indicator associated with DSO failure.
This is often used in catch handlers.
| void* ost::DSO::operator[] | ( | const char * | sym | ) |
Lookup a symbol in the loaded file.
| static void ost::DSO::dynunload | ( | void | ) | [static] |
| static DSO* ost::DSO::getObject | ( | const char * | name | ) | [static] |
| bool ost::DSO::isValid | ( | void | ) |
| static void ost::DSO::setDebug | ( | void | ) | [static] |
Install debug handler.
..
1.5.4