Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages | Examples

DSO Class Reference

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

#include <file.h>

Inheritance diagram for DSO:

Script::Package List of all members.

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.
void * operator[] (const char *)
 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 DSOgetObject (const char *name)
 Find a specific DSO object by filename.
static void setDebug (void)
 Install debug handler.

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

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

Construct and load a DSO object file.

Parameters:
filename pathname of object file to load.

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


Member Function Documentation

static void DSO::dynunload void   )  [inline, static]
 

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

Retrieve error indicator associated with DSO failure.

This is often used in catch handlers.

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

Find a specific DSO object by filename.

Parameters:
name of DSO object file (partial).

bool DSO::isValid void   ) 
 

See if DSO object is valid.

Returns:
true if valid.

void* DSO::operator[] const char *   )  [inline]
 

Lookup a symbol in the loaded file.

static void DSO::setDebug void   )  [static]
 

Install debug handler.

..


The documentation for this class was generated from the following file:
Generated on Tue Sep 13 02:19:09 2005 for Bayonne by  doxygen 1.4.4