|
| | 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) |
| |
|
errc_t | setVariable (StringView name, const char *value) |
| |
|
errc_t | setVariable (StringView name, const std::string &value) |
| |
|
errc_t | setVariable (Variable *var) |
| |
|
template<typename T , typename = typename std::enable_if<!std::is_convertible<T, StringView>::value>::type> |
| errc_t | setVariable (StringView name, T value)=delete |
| |
| virtual | ~ScriptExecutor ()=default |
| |
| errc_t | execute (StringView script, std::string *error) |
| |
|
errc_t | setVariable (StringView name, const char *value) |
| |
|
errc_t | setVariable (StringView name, const std::string &value) |
| |
|
errc_t | setVariable (Variable *var) |
| |
|
template<typename T , typename = typename std::enable_if<!std::is_convertible<T, StringView>::value>::type> |
| errc_t | setVariable (StringView name, T value)=delete |
| |
|
errc_t | getVariable (Variable *var) |
| |
微软Active系列脚本执行器
用于执行微软Active系列脚本: JScriptScript、JScript 等 通过COM接口 IActiveScript 等执行脚本