Google

Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

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 (char *filename)
 Construct and load a DSO object file. More...

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

char* getError (void)
 Retrieve error indicator associated with DSO failure. More...

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

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

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

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


Friends

void dynunload (void)
void dynunload (void)


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(s):
David Sugar <dyfet@ostel.com>


Constructor & Destructor Documentation

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

Construct and load a DSO object file.

Parameters:
pathname   of object file to load.

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

Construct and load a DSO object file.

Parameters:
pathname   of object file to load.

DSO::~DSO ( )
 

Detach a DSO object from running memory.


Member Function Documentation

char * DSO::getError ( void )
 

Retrieve error indicator associated with DSO failure.

This is often used in catch handlers.

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.

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

Lookup a symbol in the loaded file.


Friends And Related Function Documentation

void dynunload ( void ) [friend]
 

void dynunload ( void ) [friend]
 


The documentation for this class was generated from the following file:
Generated at Fri Mar 23 10:47:55 2001 for CommonC++ by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000