程序节点贡献 定义了在 AuboScope 中指定 AuboCap 程序节点所需的 API。
更多...
#include <program_node_contribution.h>
程序节点贡献 定义了在 AuboScope 中指定 AuboCap 程序节点所需的 API。
在文件 program_node_contribution.h 第 23 行定义.
◆ ~ProgramNodeContribution()
| virtual arcs::aubo_scope::ProgramNodeContribution::~ProgramNodeContribution |
( |
| ) |
|
|
virtualdefault |
◆ closeView()
| virtual void arcs::aubo_scope::ProgramNodeContribution::closeView |
( |
| ) |
|
|
pure virtual |
当此节点在程序树中被取消选中或导航到其他视图时调用。
◆ generateScript()
| virtual void arcs::aubo_scope::ProgramNodeContribution::generateScript |
( |
ScriptWriterPtr | script_writer | ) |
|
|
pure virtual |
定义此程序节点在程序中要生成的脚本代码。
- 参数
-
| script_writer | 用于添加定义此程序节点行为的脚本命令 |
◆ getAction()
| virtual std::string arcs::aubo_scope::ProgramNodeContribution::getAction |
( |
const char * | pattern, |
|
|
const std::string & | body ) |
|
inlinevirtual |
◆ getTitle()
| virtual std::string arcs::aubo_scope::ProgramNodeContribution::getTitle |
( |
| ) |
|
|
pure virtual |
- 返回
- 程序树中为此程序节点显示的文本。
- 异常
-
| IllegalStateException | 如果数据模型或子程序子树被修改 |
◆ isDefined()
| virtual bool arcs::aubo_scope::ProgramNodeContribution::isDefined |
( |
| ) |
|
|
pure virtual |
如果此程序节点完整,应返回 true,否则返回 false。
未定义的程序节点将在程序树中以黄色标记。只要程序包含一个或多个未定义的 程序节点,用户就无法启动程序。
如果此程序节点在其 DataModel 中存储了不可解析的实体(例如 PersistedVariable 或 TCP),则该程序节点将被视为未定义。
- 返回
- 如果此程序节点完整则返回
true,否则返回 false。
- 异常
-
| IllegalStateException | 如果数据模型或子程序子树被修改 |
◆ openView()
| virtual void arcs::aubo_scope::ProgramNodeContribution::openView |
( |
| ) |
|
|
pure virtual |
◆ postAction()
| virtual std::string arcs::aubo_scope::ProgramNodeContribution::postAction |
( |
const char * | pattern, |
|
|
const std::string & | body ) |
|
inlinevirtual |
该类的文档由以下文件生成: