48 throw exception(
"Can't open library '" + name +
"'");
static bool have_symbol(handle h, const std::string &name)
Tell if a symbol is in 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.
static bool valid_handle(handle h)
Tell if an handle is a valid library handle.
bool have_symbol(const std::string &name) const
Tell if the library has a symbol.
dynamic_library(const std::string &name, bool current_program=false)
Constructor.
~dynamic_library()
Destructor (close the library).
A simple class to use as exception with string message.
A class to use dynamic libraries.
A simple class to use as exception with string message.