|
OpenWalnut
1.2.5
|
Simple class holding an opened library. More...
Public Member Functions | |
| ~data () | |
| Destructor. | |
| data (const std::string &path) | |
| Constructor. | |
| func_ptr_type | findFunction (const std::string &name) |
| Searches the lib for the specified function symbol and returns it. | |
| void * | findVariable (const std::string &name) |
| Searches the lib for the specified symbol and returns it. | |
Public Attributes | |
| const std::string | m_path |
| Path of lib. | |
| void * | m_dl |
| Handle describing the loaded lib. | |
Simple class holding an opened library.
Definition at line 162 of file WSharedLib.cpp.
|
inline |
Destructor.
Closes the previously opened library handle.
Definition at line 177 of file WSharedLib.cpp.
References m_dl.
|
inlineexplicit |
Constructor.
Opens and loads the library.
| path | the lib to open |
Definition at line 189 of file WSharedLib.cpp.
|
inline |
Searches the lib for the specified function symbol and returns it.
| name | the name of the function |
| WLibraryFetchFailed | thrown if the symbol could not be found. |
Definition at line 209 of file WSharedLib.cpp.
References findVariable().
Referenced by WSharedLib::findFunction().
|
inline |
Searches the lib for the specified symbol and returns it.
| name | the name of the symbol to search. |
| WLibraryFetchFailed | thrown if the symbol could not be found. |
Definition at line 224 of file WSharedLib.cpp.
References m_dl.
Referenced by findFunction(), and WSharedLib::findVariable().
| void* WSharedLib::data::m_dl |
Handle describing the loaded lib.
Definition at line 172 of file WSharedLib.cpp.
Referenced by data(), findVariable(), and ~data().
| const std::string WSharedLib::data::m_path |
1.8.1