A DynamicLibrary.
More...
#include <dynamic_loader.h>
◆ native_handle_type
◆ DynamicLibrary() [1/4]
mysql_harness::DynamicLibrary::DynamicLibrary |
( |
| ) |
|
|
default |
◆ DynamicLibrary() [2/4]
mysql_harness::DynamicLibrary::DynamicLibrary |
( |
const DynamicLibrary & |
| ) |
|
|
delete |
◆ DynamicLibrary() [3/4]
mysql_harness::DynamicLibrary::DynamicLibrary |
( |
DynamicLibrary && |
rhs | ) |
|
|
inline |
◆ ~DynamicLibrary()
mysql_harness::DynamicLibrary::~DynamicLibrary |
( |
| ) |
|
|
inline |
destruct a DynamicLibrary.
unloads dynamic library if it is loaded
◆ DynamicLibrary() [4/4]
mysql_harness::DynamicLibrary::DynamicLibrary |
( |
std::string |
filename, |
|
|
native_handle_type |
handle |
|
) |
| |
|
inlineprivate |
construct DynamicLibrary from native_handle.
- Parameters
-
filename | filename on the loaded library |
handle | handle to the loaded library |
◆ error_msg()
std::string mysql_harness::DynamicLibrary::error_msg |
( |
| ) |
const |
|
inline |
get error message if symbol() failed with DynamicLoaderErrc::DlError.
◆ filename()
std::string mysql_harness::DynamicLibrary::filename |
( |
| ) |
const |
|
inline |
get filename of the loaded module.
◆ native_handle()
get the native handle to the shared object.
◆ operator=() [1/2]
◆ operator=() [2/2]
◆ symbol()
stdx::expected< void *, std::error_code > mysql_harness::DynamicLibrary::symbol |
( |
const std::string & |
name | ) |
const |
get a symbol from the dynamic library.
◆ unload()
void mysql_harness::DynamicLibrary::unload |
( |
| ) |
|
unload a DynamicLibary if it is loaded.
◆ DynamicLoader
◆ error_msg_
std::string mysql_harness::DynamicLibrary::error_msg_ |
|
mutableprivate |
◆ filename_
std::string mysql_harness::DynamicLibrary::filename_ |
|
private |
◆ handle_
The documentation for this class was generated from the following files: