Main Page   Class Hierarchy   Compound List   File List   Compound Members  

SOME::BasicDynLib Class Reference

BasicDynLib is for encapsulating the general functionality of dynamic libraries. More...

#include <BasicDynLib.h>

List of all members.

Public Methods

virtual ~BasicDynLib ()
bool isValid () const
 Returns state of loaded library. More...

virtual bool loadLibrary (const char* filepath) = 0
 Loads dynamic library into system. More...

virtual void* getFunction (const char* func) = 0
 Returns a function pointer to the function requested. More...

std::list< std::string > enumDirectory ( std::string path )
 enumerates a list of all files given a directory and expression in the form of <directory>/[[*][.]]*. More...

const std::string& getFilePath ()
 The file path for the library. More...


Protected Methods

 BasicDynLib ()

Protected Attributes

bool valid_lib
std::string file_path


Detailed Description

BasicDynLib is for encapsulating the general functionality of dynamic libraries.

Added SOMELib functionality will be put into classes which use BasicDynLib. Do not derive from BasicDynLib, unless you are providing a new type of dynamic library loading within BasicDynLib.cpp If you want to use BasicDynLib outside of the SOMELib functionality use newDynLib

Definition at line 39 of file BasicDynLib.h.


Constructor & Destructor Documentation

SOME::BasicDynLib::BasicDynLib ( ) [protected]
 

Definition at line 35 of file BasicDynLib.cpp.

SOME::BasicDynLib::~BasicDynLib ( ) [virtual]
 

Definition at line 41 of file BasicDynLib.cpp.


Member Function Documentation

std::list< std::string > SOME::BasicDynLib::enumDirectory ( std::string path )
 

enumerates a list of all files given a directory and expression in the form of <directory>/[[*][.]]*.

const std::string & SOME::BasicDynLib::getFilePath ( ) [inline]
 

The file path for the library.

Definition at line 63 of file BasicDynLib.h.

void * SOME::BasicDynLib::getFunction ( const char * func ) [pure virtual]
 

Returns a function pointer to the function requested.

bool SOME::BasicDynLib::isValid ( ) const [inline]
 

Returns state of loaded library.

Definition at line 49 of file BasicDynLib.h.

bool SOME::BasicDynLib::loadLibrary ( const char * filepath ) [pure virtual]
 

Loads dynamic library into system.


Member Data Documentation

std::string SOME::BasicDynLib::file_path [protected]
 

Definition at line 73 of file BasicDynLib.h.

bool SOME::BasicDynLib::valid_lib [protected]
 

Definition at line 72 of file BasicDynLib.h.


The documentation for this class was generated from the following files:
Generated at Fri Dec 8 14:24:48 2000 for SOMELib by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000