|
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.
| WSharedLib::data::~data | ( | ) | [inline] |
Destructor.
Closes the previously opened library handle.
Definition at line 177 of file WSharedLib.cpp.
References m_dl.
| WSharedLib::data::data | ( | const std::string & | path | ) | [inline, explicit] |
Constructor.
Opens and loads the library.
| path | the lib to open |
Definition at line 189 of file WSharedLib.cpp.
| func_ptr_type WSharedLib::data::findFunction | ( | const std::string & | name | ) | [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().
| void* WSharedLib::data::findVariable | ( | const std::string & | name | ) | [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.7.3