#include <DynLibLoaderGNU.hxx>
Public Member Functions | |
DynLibLoaderGNU (const std::string &libNameWithoutExtension) | |
~DynLibLoaderGNU () | |
bool | isLibFileFindable () const |
std::string | getLibNameWithoutExt () const |
int | appendDirInSearchPath (const std::string &dirName) |
int | removeDirInSearchPath (const std::string &dirName) |
void * | getHandleOnSymbolWithName (const std::string &symbName, bool stopOnError=true) |
bool | load () |
bool | reload () |
bool | unload () |
Static Public Member Functions | |
static const char * | getExtensionForDynLib () |
Private Member Functions | |
void | loadLib () |
void * | resolveSymb (const std::string &symbName, bool stopOnError) |
load lib without regarding that _libName is reachable More... | |
DynLibLoaderGNU (const DynLibLoaderGNU &orig) | |
DynLibLoaderGNU & | operator= (const DynLibLoaderGNU &orig) |
Private Attributes | |
void * | _handleOnLoadedLib |
std::string | _libName |
Static Private Attributes | |
static const char | _extForDynLib [] =".so" |
Definition at line 29 of file DynLibLoaderGNU.hxx.
DynLibLoaderGNU::DynLibLoaderGNU | ( | const std::string & | libNameWithoutExtension | ) |
Definition at line 33 of file DynLibLoaderGNU.cxx.
DynLibLoaderGNU::~DynLibLoaderGNU | ( | ) |
Definition at line 38 of file DynLibLoaderGNU.cxx.
References _handleOnLoadedLib.
|
inlineprivate |
Definition at line 54 of file DynLibLoaderGNU.hxx.
int DynLibLoaderGNU::appendDirInSearchPath | ( | const std::string & | dirName | ) |
Append a directory with name dirName to the searching paths.
Definition at line 60 of file DynLibLoaderGNU.cxx.
|
static |
Definition at line 136 of file DynLibLoaderGNU.cxx.
References _extForDynLib.
void * DynLibLoaderGNU::getHandleOnSymbolWithName | ( | const std::string & | symbName, |
bool | stopOnError = true |
||
) |
Definition at line 76 of file DynLibLoaderGNU.cxx.
References _extForDynLib, _handleOnLoadedLib, isLibFileFindable(), loadLib(), and resolveSymb().
std::string DynLibLoaderGNU::getLibNameWithoutExt | ( | ) | const |
Definition at line 49 of file DynLibLoaderGNU.cxx.
References _libName.
bool DynLibLoaderGNU::isLibFileFindable | ( | ) | const |
Definition at line 44 of file DynLibLoaderGNU.cxx.
Referenced by getHandleOnSymbolWithName().
bool DynLibLoaderGNU::load | ( | ) |
Definition at line 90 of file DynLibLoaderGNU.cxx.
References _extForDynLib, _handleOnLoadedLib, and _libName.
Referenced by loadLib(), and reload().
|
inlineprivate |
Definition at line 49 of file DynLibLoaderGNU.hxx.
References load().
Referenced by getHandleOnSymbolWithName().
|
inlineprivate |
Definition at line 55 of file DynLibLoaderGNU.hxx.
bool DynLibLoaderGNU::reload | ( | ) |
int DynLibLoaderGNU::removeDirInSearchPath | ( | const std::string & | dirName | ) |
Removes a directory with name dirName from the searching paths.
Definition at line 71 of file DynLibLoaderGNU.cxx.
|
private |
load lib without regarding that _libName is reachable
Definition at line 121 of file DynLibLoaderGNU.cxx.
References _extForDynLib, _handleOnLoadedLib, _libName, and PMMLBasicsTestLauncher::ret.
Referenced by getHandleOnSymbolWithName().
bool DynLibLoaderGNU::unload | ( | ) |
Definition at line 106 of file DynLibLoaderGNU.cxx.
References _handleOnLoadedLib.
Referenced by reload().
|
staticprivate |
Definition at line 34 of file DynLibLoaderGNU.hxx.
Referenced by getExtensionForDynLib(), getHandleOnSymbolWithName(), load(), and resolveSymb().
|
private |
Definition at line 32 of file DynLibLoaderGNU.hxx.
Referenced by getHandleOnSymbolWithName(), load(), resolveSymb(), unload(), and ~DynLibLoaderGNU().
|
private |
Definition at line 33 of file DynLibLoaderGNU.hxx.
Referenced by getLibNameWithoutExt(), load(), and resolveSymb().