Public Member Functions | Protected Member Functions | Protected Attributes
ModuleLoader Class Reference

Helper class to dynamically load named functions from libraries. More...

#include <moduleLoader.h>

Inheritance diagram for ModuleLoader:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void * getFunction (string fnString)=0
 ModuleLoader ()
 ~ModuleLoader ()

Protected Member Functions

string extractFunctionName (string fnString)
string extractLibName (string fnString)

Protected Attributes

map< string, void * > _openLibs
 contains the handles for open libraries

Detailed Description

Helper class to dynamically load named functions from libraries.

Basically this class offers the functionality to pass a string as "checkcond@libtest.so" returning the function pointer to "checkcond in libtest.so".

Definition at line 14 of file moduleLoader.h.


Constructor & Destructor Documentation

Definition at line 3 of file moduleLoader.cpp.

Definition at line 8 of file moduleLoader.cpp.


Member Function Documentation

string ModuleLoader::extractFunctionName ( string  fnString) [protected]

Definition at line 13 of file moduleLoader.cpp.

string ModuleLoader::extractLibName ( string  fnString) [protected]

Definition at line 21 of file moduleLoader.cpp.

virtual void* ModuleLoader::getFunction ( string  fnString) [pure virtual]

Implemented in ModuleLoaderDLL, and ModuleLoaderLDL.


Member Data Documentation

map<string, void*> ModuleLoader::_openLibs [protected]

contains the handles for open libraries

Definition at line 28 of file moduleLoader.h.


The documentation for this class was generated from the following files:


tfd_modules
Author(s): Maintained by Christian Dornhege (see AUTHORS file).
autogenerated on Mon Oct 6 2014 07:52:06