Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

salt::SharedLibrary Class Reference

SharedLibrary defines a commmon interface for the usage of shared libraries. More...

#include <sharedlibrary.h>

List of all members.

Public Member Functions

 SharedLibrary ()
 constructs a sharedLibrary object
 ~SharedLibrary ()
 destroys a sharedLibrary, releasing a previously opened library
bool Open (const std::string &libName)
 opens a sharedLibrary, releasing a previously opened library
void * GetProcAddress (const std::string &procName)
 returns a pointer to the exported function procName of the library or NULL if the function does not exist.
void Close ()
 releases a previously opened library

Private Attributes

void * mLibHandle
 a platform dependent handle to the managed library


Detailed Description

SharedLibrary defines a commmon interface for the usage of shared libraries.

The implementation of this class depends on the platform and used compiler. Up to now two implementations for Windows using the Visual C++ Compiler and Linux using the gcc compiler are available.

Definition at line 49 of file sharedlibrary.h.


Constructor & Destructor Documentation

salt::SharedLibrary::SharedLibrary  )  [inline]
 

constructs a sharedLibrary object

Definition at line 64 of file sharedlibrary.h.

salt::SharedLibrary::~SharedLibrary  )  [inline]
 

destroys a sharedLibrary, releasing a previously opened library

Definition at line 67 of file sharedlibrary.h.

References Close().

Here is the call graph for this function:


Member Function Documentation

void SharedLibrary::Close  ) 
 

releases a previously opened library

Definition at line 60 of file sharedlibrary.cpp.

References mLibHandle.

Referenced by Open(), and ~SharedLibrary().

void * SharedLibrary::GetProcAddress const std::string &  procName  ) 
 

returns a pointer to the exported function procName of the library or NULL if the function does not exist.

Definition at line 50 of file sharedlibrary.cpp.

References mLibHandle.

bool SharedLibrary::Open const std::string &  libName  ) 
 

opens a sharedLibrary, releasing a previously opened library

Definition at line 29 of file sharedlibrary.cpp.

References Close(), and mLibHandle.

Here is the call graph for this function:


Member Data Documentation

void* salt::SharedLibrary::mLibHandle [private]
 

a platform dependent handle to the managed library

Definition at line 85 of file sharedlibrary.h.

Referenced by Close(), GetProcAddress(), and Open().


The documentation for this class was generated from the following files:
Generated on Thu Apr 6 15:49:24 2006 for rcssserver3d by  doxygen 1.4.4