Cross-platform dynamic library loading abstraction. More...
Typedefs | |
| using | Handle = void * |
Functions | |
| Handle | open (const char *name) noexcept |
| void * | sym (Handle h, const char *name) noexcept |
| void | close (Handle h) noexcept |
| std::string | error () |
| Handle | openFirst (const char *const names[]) noexcept |
| Try a list of library names in order, return first successful handle. | |
| template<typename Fn> | |
| Fn | loadSym (Handle h, const char *name) noexcept |
| Load a symbol and cast to a function pointer type. | |
Cross-platform dynamic library loading abstraction.
Used by LammpsLoader, XtbLoader, and any other runtime-loaded potentials.
| using eonc::dynlib::Handle = void * |
|
inlinenoexcept |
|
inline |
|
noexcept |
|
inlinenoexcept |
Definition at line 62 of file DynLib.h.
|
inlinenoexcept |