Reflex::SharedLibrary Class Reference
[Reflex]

#include <Reflex/SharedLibrary.h>

List of all members.

Public Member Functions

 SharedLibrary (const std::string &libname)
bool Load ()
bool Unload ()
bool Symbol (const std::string &symname, void *&sym)
const std::string Error ()

Private Attributes

void * fHandle
std::string fLibName


Detailed Description

Author:
Stefan Roiser
Date:
24/11/2006
Parts of this implementation are copyied from SEAL (http://cern.ch/seal)

Definition at line 32 of file SharedLibrary.h.


Constructor & Destructor Documentation

Reflex::SharedLibrary::SharedLibrary ( const std::string libname  )  [inline]

Definition at line 60 of file SharedLibrary.h.


Member Function Documentation

bool Reflex::SharedLibrary::Load (  )  [inline]

Definition at line 95 of file SharedLibrary.h.

References dlopen(), fHandle, and fLibName.

bool Reflex::SharedLibrary::Unload (  )  [inline]

Definition at line 134 of file SharedLibrary.h.

References dlclose(), and fHandle.

bool Reflex::SharedLibrary::Symbol ( const std::string symname,
void *&  sym 
) [inline]

Definition at line 113 of file SharedLibrary.h.

References dlsym(), and fHandle.

const std::string Reflex::SharedLibrary::Error (  )  [inline]

Definition at line 69 of file SharedLibrary.h.

References dlerror(), error, LPVOID, and NULL.


Member Data Documentation

void* Reflex::SharedLibrary::fHandle [private]

a handle to the loaded library

Definition at line 50 of file SharedLibrary.h.

Referenced by Load(), Symbol(), and Unload().

std::string Reflex::SharedLibrary::fLibName [private]

the name of the shared library to handle

Definition at line 53 of file SharedLibrary.h.

Referenced by Load().


The documentation for this class was generated from the following file:
Generated on Tue Jul 5 16:56:47 2011 for ROOT_528-00b_version by  doxygen 1.5.1