|
Claw
1.7.3
|
Unix interface for using dynamic libraries. More...
#include <dynamic_library_traits_unix.hpp>
Public Types | |
| typedef void * | handle |
| Type of the system handle to the library. | |
Static Public Member Functions | |
| static handle | open (const std::string &name) |
| Open a library. More... | |
| static handle | auto_open (const std::string &name) |
| Open the current program. More... | |
| static void | close (handle h) |
| Close a library. More... | |
| template<class T > | |
| static T | get_symbol (handle h, const std::string &name) |
| Get a symbol from a library. More... | |
| static bool | have_symbol (handle h, const std::string &name) |
| Tell if a symbol is in the library. More... | |
| static bool | valid_handle (handle h) |
| Tell if an handle is a valid library handle. More... | |
Unix interface for using dynamic libraries.
Definition at line 43 of file dynamic_library_traits_unix.hpp.
|
inlinestatic |
Open the current program.
| name | (not used) The name of the current program. |
Definition at line 72 of file dynamic_library_traits_unix.hpp.
References valid_handle().
Referenced by claw::dynamic_library::dynamic_library().
|
inlinestatic |
Close a library.
| h | The handle of the library to close. |
Definition at line 87 of file dynamic_library_traits_unix.hpp.
Referenced by claw::dynamic_library::~dynamic_library().
|
inlinestatic |
Get a symbol from a library.
| h | Handle of the library. |
| name | The name of the symbol to load. |
Definition at line 99 of file dynamic_library_traits_unix.hpp.
|
inlinestatic |
Tell if a symbol is in the library.
| h | Handle of the library. |
| name | The name of the symbol to find. |
Definition at line 115 of file dynamic_library_traits_unix.hpp.
Referenced by claw::dynamic_library::have_symbol().
|
inlinestatic |
Open a library.
| name | The name of the library to open. |
Definition at line 56 of file dynamic_library_traits_unix.hpp.
References valid_handle().
Referenced by claw::dynamic_library::dynamic_library().
|
inlinestatic |
Tell if an handle is a valid library handle.
| h | The handle to test. |
Definition at line 125 of file dynamic_library_traits_unix.hpp.
Referenced by auto_open(), claw::dynamic_library::dynamic_library(), and open().
1.8.17