|
🛰️航天仿真算法库 SpaceAST 0.4.0
|
#include <PluginLoader.hpp>
Public 成员函数 | |
| errc_t | load (StringView filepath) |
| bool | isPlugin () const |
| const std::vector< PluginEntry > & | entries () const |
| const std::string & | filepath () const |
| PluginInstance * | instance () |
单个插件动态库加载器
加载后读取元数据并解析为 PluginEntry 列表,按需获取插件的根对象 插件动态库加载后将常驻到进程退出
| PluginInstance * ast::PluginLoader::instance | ( | ) |
获取插件根对象
| errc_t ast::PluginLoader::load | ( | StringView | filepath | ) |
加载动态库并解析其元数据
| filepath | 动态库路径 |