Unix interface for using dynamic libraries.
More...
#include <dynamic_library_traits_unix.hpp>
|
| typedef void * | handle |
| | Type of the system handle to the library.
|
| |
|
| static handle | open (const std::string &name) |
| | Open a library.
|
| |
| static handle | auto_open (const std::string &name) |
| | Open the current program.
|
| |
| static void | close (handle h) |
| | Close a library.
|
| |
| template<class T> |
| static T | get_symbol (handle h, const std::string &name) |
| | Get a symbol from a library.
|
| |
| static bool | have_symbol (handle h, const std::string &name) |
| | Tell if a symbol is in the library.
|
| |
| static bool | valid_handle (handle h) |
| | Tell if an handle is a valid library handle.
|
| |
Unix interface for using dynamic libraries.
- Author
- Julien Jorge
Definition at line 43 of file dynamic_library_traits_unix.hpp.
◆ handle
◆ auto_open()
| static handle claw::dynamic_library_traits_unix::auto_open |
( |
const std::string & | name | ) |
|
|
inlinestatic |
Open the current program.
- Parameters
-
| name | (not used) The name of the current program. |
- Returns
- The handle on the loaded library.
Definition at line 70 of file dynamic_library_traits_unix.hpp.
◆ close()
| static void claw::dynamic_library_traits_unix::close |
( |
handle | h | ) |
|
|
inlinestatic |
◆ get_symbol()
template<class T>
| static T claw::dynamic_library_traits_unix::get_symbol |
( |
handle | h, |
|
|
const std::string & | name ) |
|
inlinestatic |
◆ have_symbol()
| static bool claw::dynamic_library_traits_unix::have_symbol |
( |
handle | h, |
|
|
const std::string & | name ) |
|
inlinestatic |
Tell if a symbol is in the library.
- Parameters
-
| h | Handle of the library. |
| name | The name of the symbol to find. |
Definition at line 110 of file dynamic_library_traits_unix.hpp.
◆ open()
| static handle claw::dynamic_library_traits_unix::open |
( |
const std::string & | name | ) |
|
|
inlinestatic |
Open a library.
- Parameters
-
| name | The name of the library to open. |
- Returns
- The handle on the loaded library.
Definition at line 55 of file dynamic_library_traits_unix.hpp.
◆ valid_handle()
| static bool claw::dynamic_library_traits_unix::valid_handle |
( |
handle | h | ) |
|
|
inlinestatic |
The documentation for this class was generated from the following file: