Dynamic library loading and management class. More...
#include <dlib.hpp>
Public Member Functions | |
| dlib (const char *path) | |
| dlib (const std::string &path) | |
| dlib (const me &rhs) | |
| me & | operator= (const me &rhs) |
| const std::string & | getPath () const |
| void | setPath (const std::string &path) |
| void | setPath (const std::string *it) BY_SIDE_FUNC(setPath) |
| tmay< std::string > | load () |
| nbool | isLoaded () const |
| template<typename F > | |
| tmayFunc< F > | accessFunc (const std::string &name) |
| template<typename F > | |
| tmayFunc< F > | accessFunc (const std::string *it) BY_SIDE_FUNC(accessFunc< F >) |
| template<typename F > | |
| tmayFunc< F > | accessFunc (const nchar *name) |
| void | rel () |
Dynamic library loading and management class.
Provides cross-platform dynamic library loading capabilities. Supports loading shared libraries (.so, .dll) and accessing functions within them.
|
inline |
access function and get address of it inside library.
func as nullptr if it failed or return errMsg as nullptr if it's success. | tmay< std::string > by::dlib::load | ( | ) |
load dynamic library with given path.