Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Examples  

ost::DSO Class Reference

The DSO dynamic loader class is used to load object files. Dynamic class file loader. More...

#include <file.h>

List of all members.

Public Methods

 DSO (const char *filename)
 Construct and load a DSO object file. More...

 DSO (const char *filename, bool resolve)
const char* getError (void)
 Retrieve error indicator associated with DSO failure. More...

virtual ~DSO ()
 Detach a DSO object from running memory. More...

void* operator[] (const char *sym)
 Lookup a symbol in the loaded file. More...

bool isValid (void)
 See if DSO object is valid. More...


Static Public Methods

void dynunload (void)
DSO* getObject (const char *name)
 Find a specific DSO object by filename. More...

void setDebug (void)
 Install debug handler... More...


Detailed Description

The DSO dynamic loader class is used to load object files. Dynamic class file loader.

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@ostel.com>


Constructor & Destructor Documentation

ost::DSO::DSO ( const char * filename ) [inline]
 

Construct and load a DSO object file.

Parameters:
filename   pathname of object file to load.

ost::DSO::DSO ( const char * filename,
bool resolve ) [inline]
 

ost::DSO::~DSO ( ) [virtual]
 

Detach a DSO object from running memory.


Member Function Documentation

void ost::DSO::dynunload ( void ) [static]
 

const char * ost::DSO::getError ( void ) [inline]
 

Retrieve error indicator associated with DSO failure.

This is often used in catch handlers.

DSO * ost::DSO::getObject ( const char * name ) [static]
 

Find a specific DSO object by filename.

Parameters:
name   of DSO object file (partial).

bool ost::DSO::isValid ( void )
 

See if DSO object is valid.

Returns:
true if valid.

void * ost::DSO::operator[] ( const char * sym )
 

Lookup a symbol in the loaded file.

void ost::DSO::setDebug ( void ) [static]
 

Install debug handler...


The documentation for this class was generated from the following file:
Generated at Sat May 12 18:59:40 2007 for GNU CommonC++ by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001