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

ActiveSharedLib Class Reference

#include <ActiveSharedLib.h>

Inheritance diagram for ActiveSharedLib:

Inheritance graph
[legend]
Collaboration diagram for ActiveSharedLib:

Collaboration graph
[legend]
List of all members.

Public Methods

 ActiveSharedLib ()
 Constructor. More...

void remove ()
 Remove the shared library from the filesystem (e.g. temporary libraries). More...

int makeLib (const char *baseFileName, const char *gmakeFile, char *override)
int compile (char *baseFileName, const char *gmakeFile, char *override)

Detailed Description

Class to compile and load on demand a shared library. This class allows the user to compile a source file to produce a shared library and then load it explicitly. Loading capabilities are inherited from the base class BaseSharedLib. Compilation is carried out using gmake and requires an external makefile. The code supports Sun, HP (aCC) , DEC, Linux and NT platforms.

Definition at line 31 of file ActiveSharedLib.h.


Constructor & Destructor Documentation

ActiveSharedLib   [inline]
 

Definition at line 34 of file ActiveSharedLib.h.


Member Function Documentation

int compile char *    baseFileName,
const char *    gmakeFile,
char *    override
 

Method to compile the code. The method accepts a base file name (extension it's assumed to be cpp, although .C extension will work as well), the path to a GNU Makefile and a string which is passed to gmake to define or override gmake variables.

Definition at line 40 of file ActiveSharedLib.cpp.

References BaseSharedLib::getPathName.

Referenced by makeLib.

int makeLib const char *    baseFileName,
const char *    gmakeFile,
char *    override
 

Method to compile the code, check for success and set the library path. The method accepts a base file name (extension it's assumed to be cpp), the path to a GNU Makefile and a string which is passed to gmake to define or override gmake variables.

Definition at line 83 of file ActiveSharedLib.cpp.

References compile, and BaseSharedLib::setPathName.

void remove  
 

Definition at line 30 of file ActiveSharedLib.cpp.

References BaseSharedLib::getPathName, UNLINKCALL, and BaseSharedLib::unload.


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