by::dlib Class Reference

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 ()
 

Detailed Description

Dynamic library loading and management class.

Provides cross-platform dynamic library loading capabilities. Supports loading shared libraries (.so, .dll) and accessing functions within them.

Member Function Documentation

◆ accessFunc()

template<typename F >
tmayFunc< F > by::dlib::accessFunc ( const std::string &  name)
inline

access function and get address of it inside library.

Returns
func as nullptr if it failed or return errMsg as nullptr if it's success.

◆ load()

tmay< std::string > by::dlib::load ( )

load dynamic library with given path.

Returns
empty may object if it's success. or return error msg.

The documentation for this class was generated from the following file: