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>

Inheritance diagram for ost::DSO:

ost::PluginGroup List of all members.

Public Methods

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

 DSO (const char *filename, bool resolve)
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 Methods

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:
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]
 


Member Function Documentation

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

char* ost::DSO::getError void   
 

Retrieve error indicator associated with DSO failure.

This is often used in catch handlers.

bool ost::DSO::isValid void   
 

See if DSO object is valid.

Returns:
true if valid.

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

Lookup a symbol in the loaded file.


The documentation for this class was generated from the following file:
Generated on Thu Nov 21 12:28:33 2002 for GNU CommonC++ by doxygen1.2.18