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

BaseSharedLib Class Reference

#include <BaseSharedLib.h>

Inheritance diagram for BaseSharedLib:

Inheritance graph
[legend]
List of all members.

Public Methods

 BaseSharedLib (const char *pathName="", int loadIt=0)
 Constructor accepting optional pathName and optional library loading flag. More...

 ~BaseSharedLib ()
 Destructor. More...

void setPathName (const char *name)
 Set the path name to the shared library. More...

const char * getPathName ()
 Return current path name. More...

int load ()
void unload ()
 Unload the library (static destructors will be called). More...

void * lookUp (const char *funName)
 Look up a C symbol from the library. More...


Private Attributes

char * fLibPath
SharedLibHandle fLibHandle

Detailed Description

Class to load on demand a shared library. This class allows the user to load explicitly a shared library. The code supports Sun, HP (aCC) , DEC, Linux and NT platforms. It may still work on SGI but it has not been tested anymore since a long time.

Definition at line 28 of file BaseSharedLib.h.


Constructor & Destructor Documentation

BaseSharedLib const char *    pathName = "",
int    loadIt = 0
 

Definition at line 11 of file BaseSharedLib.cpp.

References load, and setPathName.

~BaseSharedLib  
 

Definition at line 19 of file BaseSharedLib.cpp.

References fLibPath, and unload.


Member Function Documentation

const char * getPathName  
 

Definition at line 33 of file BaseSharedLib.cpp.

References fLibPath.

Referenced by ActiveSharedLib::compile, and ActiveSharedLib::remove.

int load  
 

Load the library (static contructors will be called). The method will return 0 if loading was not successful.

Definition at line 38 of file BaseSharedLib.cpp.

References fLibHandle, fLibPath, and unload.

Referenced by BaseSharedLib.

void * lookUp const char *    funName
 

Definition at line 108 of file BaseSharedLib.cpp.

References fLibHandle, and fLibPath.

void setPathName const char *    name
 

Definition at line 26 of file BaseSharedLib.cpp.

References fLibPath.

Referenced by BaseSharedLib, and ActiveSharedLib::makeLib.

void unload  
 

Definition at line 86 of file BaseSharedLib.cpp.

References fLibHandle.

Referenced by load, ActiveSharedLib::remove, and ~BaseSharedLib.


Member Data Documentation

SharedLibHandle fLibHandle [private]
 

Definition at line 42 of file BaseSharedLib.h.

Referenced by load, lookUp, and unload.

char* fLibPath [private]
 

Definition at line 30 of file BaseSharedLib.h.

Referenced by getPathName, load, lookUp, setPathName, and ~BaseSharedLib.


The documentation for this class was generated from the following files:
Generated on Tue May 20 14:50:27 2003 for HepUtilities by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002