|
AuboStudio SDK
0.6.3
|
|
|
|
|
\chinese 程序节点贡献 定义了在 AuboScope 中指定 AuboCap 程序节点所需的 API。 \endchinese \english ProgramNodeContribution Defines an API required for specifying a AuboCap Program Node within AuboScope. 更多...
#include <program_node_contribution.h>
Public 成员函数 | |
| virtual | ~ProgramNodeContribution ()=default |
| virtual void | openView ()=0 |
| \chinese 当此节点在程序树中被选中时调用。 \endchinese \english Called when this node is selected in the program tree. | |
| virtual void | closeView ()=0 |
| \chinese 当此节点在程序树中被取消选中或导航到其他视图时调用。 \endchinese \english Called when this node is unselected in the program tree or when navigating to another view. | |
| virtual std::string | getTitle ()=0 |
| \chinese | |
| virtual bool | isDefined ()=0 |
| \chinese | |
| virtual void | generateScript (ScriptWriterPtr script_writer)=0 |
| \chinese 定义此程序节点在程序中要生成的脚本代码。 | |
| virtual std::string | postAction (const char *pattern, const std::string &body) |
| \chinese | |
| virtual std::string | getAction (const char *pattern, const std::string &body) |
| \chinese | |
\chinese 程序节点贡献 定义了在 AuboScope 中指定 AuboCap 程序节点所需的 API。 \endchinese \english ProgramNodeContribution Defines an API required for specifying a AuboCap Program Node within AuboScope.
\endenglish
在文件 program_node_contribution.h 第 23 行定义.
|
virtualdefault |
|
pure virtual |
\chinese 当此节点在程序树中被取消选中或导航到其他视图时调用。 \endchinese \english Called when this node is unselected in the program tree or when navigating to another view.
\endenglish
|
pure virtual |
\chinese 定义此程序节点在程序中要生成的脚本代码。
| script_writer | 用于添加定义此程序节点行为的脚本命令 \endchinese \english Defines the script code to be generated by this program node within the program. |
| script_writer | serves to add script commands that define the behaviour of this program node. \endenglish |
|
inlinevirtual |
\chinese
getAction 发送 HTTP GET 请求
| pattern | URL 模式 |
| body | 请求体 |
GET
| pattern | |
| body |
在文件 program_node_contribution.h 第 153 行定义.
|
pure virtual |
\chinese
| IllegalStateException | 如果数据模型或子程序子树被修改 \endchinese \english |
| IllegalStateException | if the data model or child program sub-tree is modified \endenglish |
|
pure virtual |
\chinese
如果此程序节点完整,应返回 true,否则返回 false。
未定义的程序节点将在程序树中以黄色标记。只要程序包含一个或多个未定义的 程序节点,用户就无法启动程序。
如果此程序节点在其 DataModel 中存储了不可解析的实体(例如 PersistedVariable 或 TCP),则该程序节点将被视为未定义。
true,否则返回 false。 | IllegalStateException | 如果数据模型或子程序子树被修改 \endchinese \english |
Should return true if this program node is complete, and false otherwise.
Undefined program nodes will be marked with yellow in the program tree. The user cannot start the program as long as it contains one or more undefined program nodes.
If this program node stores an unresolvable entity (e.g. variable/PersistedVariable or tcp/TCP) in its DataModel, the program node will be treated as undefined.
true if this program node is complete and otherwise false. | IllegalStateException | if the data model or child program sub-tree is modified. \endenglish |
|
pure virtual |
\chinese 当此节点在程序树中被选中时调用。 \endchinese \english Called when this node is selected in the program tree.
\endenglish
|
inlinevirtual |
\chinese
postAction 发送 HTTP POST 请求
| pattern | URL 模式 |
| body | 请求体 |
post
| pattern | |
| body |
在文件 program_node_contribution.h 第 134 行定义.