|
🛰️航天仿真算法库 SpaceAST 0.0.1
|
#include <ActiveScriptExecutor.hpp>
类 ast::ActiveScriptExecutor 继承关系图:类 | |
| class | Impl |
Public 成员函数 | |
| ActiveScriptExecutor (const wchar_t *progId) | |
| errc_t | initialize () override |
| void | finalize () override |
| errc_t | execute (StringView script, ScriptResult *resultOut=nullptr) override |
| errc_t | evaluate (StringView expression, ScriptResult *resultOut=nullptr) override |
| std::string | getLastError () const override |
| errc_t | setVariable (StringView name, StringView value) override |
| errc_t | setVariable (StringView name, double value) override |
| errc_t | setVariable (StringView name, int value) override |
| errc_t | setVariable (StringView name, bool value) override |
| errc_t | getVariable (StringView name, std::string &value) const override |
| errc_t | getVariable (StringView name, double &value) const override |
| errc_t | getVariable (StringView name, int &value) const override |
| errc_t | getVariable (StringView name, bool &value) const override |
| errc_t | execute (StringView script, std::string *error) |
Public 成员函数 继承自 ast::ScriptExecutor | |
| virtual | ~ScriptExecutor ()=default |
| errc_t | execute (StringView script, std::string *error) |
| errc_t | setVariable (Variable *var) |
| errc_t | getVariable (Variable *var) |
Protected 成员函数 | |
| void | setProgID (const wchar_t *progId) |
Protected 属性 | |
| std::unique_ptr< Impl > | impl_ |
微软Active系列脚本执行器
用于执行微软Active系列脚本: JScriptScript、JScript 等 通过COM接口 IActiveScript 等执行脚本
|
explicit |
构造函数
允许指定脚本引擎 (如 L"JScript" / L"VBScript")
| progId | 脚本引擎 ProgID |
|
overridevirtual |
|
overridevirtual |
执行脚本语句
| script | 要执行的脚本语句 |
| resultOut | 执行结果指针,用于存储执行脚本语句的返回结果 |
实现了 ast::ScriptExecutor.
| errc_t ast::ScriptExecutor::execute | ( | StringView | script, |
| std::string * | error ) |
执行脚本(兼容旧版接口)
| script | 要执行的脚本内容 |
| error | 错误信息指针,用于存储执行脚本时的错误信息 |
|
overridevirtual |
|
overridevirtual |
获取最近一次执行脚本时的错误信息
实现了 ast::ScriptExecutor.
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |
实现了 ast::ScriptExecutor.
|
overridevirtual |