![]() |
Base class for DriverSet template with generic functionality. More...
#include <DriverSet.h>
Public Member Functions | |
BaseDriverSet (string &pFactoryNameRef) | |
Creates an instance for a BaseDriverSet. | |
BaseDriverSet (const char *pFactoryNamePtr) | |
Creates an instance for a BaseDriverSet. | |
virtual | ~BaseDriverSet () |
bool | load (string &pPathRef, string &pPrefixRef) |
According with the containing path, loads all the dynamic libraries whose name start with pPrefixRef and finishing on ".so". | |
Protected Member Functions | |
virtual void | unload ()=0 |
Base class for DriverSet template with generic functionality.
Definition at line 35 of file DriverSet.h.
|
inline |
Creates an instance for a BaseDriverSet.
pFactoryNameRef | The suffix for the internal library functions |
Definition at line 52 of file DriverSet.h.
|
inline |
Creates an instance for a BaseDriverSet.
pFactoryNamePtr | The suffix for the internal library functions |
Definition at line 60 of file DriverSet.h.
|
inlinevirtual |
Definition at line 65 of file DriverSet.h.
bool HSEP::BaseDriverSet::load | ( | string & | pPathRef, |
string & | pPrefixRef | ||
) |
According with the containing path, loads all the dynamic libraries whose name start with pPrefixRef and finishing on ".so".
The internal stored name for these libraries is the file name quitting the prefix and the finalizing ".so" extension.
The pPrefixRef must include the standard "lib" library prefix.
pPathRef | |
pPrefixRef |
Definition at line 29 of file DriverSet.cpp.
References HSEP::Array< T >::forEach(), LIBRARY_SUFFIX, LIBRARY_SUFFIX_LEN, HSEP::EC::OK, HSEP::DirTool::traverse(), and unload().
|
protectedpure virtual |
Implemented in HSEP::DriverSet< Type >.
Referenced by load().