16 bool open(std::string_view path);
25 bool is_open()
const {
return handle_ !=
nullptr; }
28 const std::string&
error()
const {
return error_; }
39 void* handle_ =
nullptr;
DynamicLibrary & operator=(const DynamicLibrary &)=delete
bool is_open() const
Whether a library is currently loaded.
Definition dynamic_library.hpp:25
void close()
Close the library.
DynamicLibrary(DynamicLibrary &&other) noexcept
bool open(std::string_view path)
Load a shared library by path. Returns false on failure.
DynamicLibrary & operator=(DynamicLibrary &&other) noexcept
void * find_symbol(std::string_view name)
Look up a symbol by name. Returns nullptr if not found.
const std::string & error() const
Last error message (platform-specific).
Definition dynamic_library.hpp:28
DynamicLibrary(const DynamicLibrary &)=delete
Definition generated_event_source.hpp:33
@ other
Definition udev_monitor.hpp:26