Helper class for dynamic loading of custom library.
Definition at line 130 of file infer_utils.h.
|
| | DlLibHandle (const std::string &path, int mode=RTLD_LAZY) |
| | Constructor. More...
|
| |
| | ~DlLibHandle () |
| |
| bool | isValid () const |
| |
| const std::string & | getPath () const |
| |
|
| template<typename FuncPtr > |
| FuncPtr | symbol (const char *func) |
| |
| template<typename FuncPtr > |
| FuncPtr | symbol (const std::string &func) |
| |
◆ DlLibHandle()
| INFER_EXPORT_API::DlLibHandle::DlLibHandle |
( |
const std::string & |
path, |
|
|
int |
mode = RTLD_LAZY |
|
) |
| |
Constructor.
Open the shared library with the given mode.
- Parameters
-
| path | Filename of the dynamic library. |
| mode | Flags to be passed to dlopen call. |
◆ ~DlLibHandle()
| INFER_EXPORT_API::DlLibHandle::~DlLibHandle |
( |
| ) |
|
◆ getPath()
| const std::string& INFER_EXPORT_API::DlLibHandle::getPath |
( |
| ) |
const |
|
inline |
◆ isValid()
| bool INFER_EXPORT_API::DlLibHandle::isValid |
( |
| ) |
const |
|
inline |
◆ symbol() [1/2]
template<typename FuncPtr >
| FuncPtr INFER_EXPORT_API::DlLibHandle::symbol |
( |
const char * |
func | ) |
|
|
inline |
◆ symbol() [2/2]
template<typename FuncPtr >
| FuncPtr INFER_EXPORT_API::DlLibHandle::symbol |
( |
const std::string & |
func | ) |
|
|
inline |
The documentation for this class was generated from the following file: