All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
HSEP::BaseDriverSet Class Referenceabstract

Base class for DriverSet template with generic functionality. More...

#include <DriverSet.h>

+ Inheritance diagram for HSEP::BaseDriverSet:

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
 

Detailed Description

Base class for DriverSet template with generic functionality.

Definition at line 35 of file DriverSet.h.

Constructor & Destructor Documentation

HSEP::BaseDriverSet::BaseDriverSet ( string &  pFactoryNameRef)
inline

Creates an instance for a BaseDriverSet.

Parameters
pFactoryNameRefThe suffix for the internal library functions

Definition at line 52 of file DriverSet.h.

HSEP::BaseDriverSet::BaseDriverSet ( const char *  pFactoryNamePtr)
inline

Creates an instance for a BaseDriverSet.

Parameters
pFactoryNamePtrThe suffix for the internal library functions

Definition at line 60 of file DriverSet.h.

virtual HSEP::BaseDriverSet::~BaseDriverSet ( )
inlinevirtual

Definition at line 65 of file DriverSet.h.

Member Function Documentation

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.

Parameters
pPathRef
pPrefixRef
Returns

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().

+ Here is the call graph for this function:

virtual void HSEP::BaseDriverSet::unload ( )
protectedpure virtual

Implemented in HSEP::DriverSet< Type >.

Referenced by load().

+ Here is the caller graph for this function:


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