#include <DynLibLoaderWin.hxx>
Public Member Functions | |
DynLibLoaderWin (const std::string &libNameWithoutExtension) | |
~DynLibLoaderWin () | |
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... | |
Private Attributes | |
HMODULE | _handleOnLoadedLib |
std::string | _libName |
Static Private Attributes | |
static const char | _extForDynLib [] =".dll" |
Definition at line 32 of file DynLibLoaderWin.hxx.
DynLibLoaderWin::DynLibLoaderWin | ( | const std::string & | libNameWithoutExtension | ) |
Definition at line 28 of file DynLibLoaderWin.cxx.
DynLibLoaderWin::~DynLibLoaderWin | ( | ) |
Definition at line 33 of file DynLibLoaderWin.cxx.
References _handleOnLoadedLib.
int DynLibLoaderWin::appendDirInSearchPath | ( | const std::string & | dirName | ) |
Append a directory with name dirName to the searching paths.
Definition at line 55 of file DynLibLoaderWin.cxx.
|
static |
Definition at line 124 of file DynLibLoaderWin.cxx.
References _extForDynLib.
void * DynLibLoaderWin::getHandleOnSymbolWithName | ( | const std::string & | symbName, |
bool | stopOnError = true |
||
) |
Definition at line 71 of file DynLibLoaderWin.cxx.
References _extForDynLib, _handleOnLoadedLib, isLibFileFindable(), loadLib(), and resolveSymb().
std::string DynLibLoaderWin::getLibNameWithoutExt | ( | ) | const |
Definition at line 44 of file DynLibLoaderWin.cxx.
References _libName.
bool DynLibLoaderWin::isLibFileFindable | ( | ) | const |
Definition at line 39 of file DynLibLoaderWin.cxx.
Referenced by getHandleOnSymbolWithName().
bool DynLibLoaderWin::load | ( | ) |
Definition at line 85 of file DynLibLoaderWin.cxx.
References _extForDynLib, _handleOnLoadedLib, and _libName.
Referenced by reload().
|
inlineprivate |
bool DynLibLoaderWin::reload | ( | ) |
int DynLibLoaderWin::removeDirInSearchPath | ( | const std::string & | dirName | ) |
Removes a directory with name dirName from the searching paths.
Definition at line 66 of file DynLibLoaderWin.cxx.
|
private |
load lib without regarding that _libName is reachable
Definition at line 109 of file DynLibLoaderWin.cxx.
References _extForDynLib, _handleOnLoadedLib, _libName, and PMMLBasicsTestLauncher::ret.
Referenced by getHandleOnSymbolWithName().
bool DynLibLoaderWin::unload | ( | ) |
Definition at line 93 of file DynLibLoaderWin.cxx.
References _handleOnLoadedLib.
Referenced by reload().
|
staticprivate |
Definition at line 37 of file DynLibLoaderWin.hxx.
Referenced by getExtensionForDynLib(), getHandleOnSymbolWithName(), load(), and resolveSymb().
|
private |
Definition at line 35 of file DynLibLoaderWin.hxx.
Referenced by getHandleOnSymbolWithName(), load(), resolveSymb(), unload(), and ~DynLibLoaderWin().
|
private |
Definition at line 36 of file DynLibLoaderWin.hxx.
Referenced by getLibNameWithoutExt(), load(), and resolveSymb().