AuboStudio SDK  0.6.3
if_node.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_IF_NODE_H
2#define AUBO_SCOPE_IF_NODE_H
3
5
6namespace arcs {
7namespace aubo_scope {
10
12{
13public:
16 virtual ~IfNode();
17
18 /**
19 * \chinese
20 * 设置节点使用的表达式。
21 * @param expression 将在 If 节点中求值的表达式
22 * @throws IllegalStateException 如果在 UndoableChanges 范围外调用
23 * \endchinese
24 * \english
25 * Sets the expression used by the node.
26 * @param expression The expression that will be evaluated in this If Node.
27 * @throws IllegalStateException if called from a Qt-based AuboCap
28 * outside of an {@link UndoableChanges} scope.
29 * \endenglish
30 */
31 void setExpression(ExpressionPtr expression);
32
33 /**
34 * \chinese
35 * @return 在此 If 节点中求值的表达式
36 * \endchinese
37 * \english
38 * @return the Expression to be evaluated in this If node.
39 * \endenglish
40 */
41 ExpressionPtr getExpression();
42
43private:
44 friend class DataSwitch;
46 void *d_{ nullptr };
47};
48
49} // namespace aubo_scope
50} // namespace arcs
51#endif // AUBO_SCOPE_IF_NODE_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese 表达式 表达式可用于配置各种内置程序节点,例如 If 和 Wait 节点。表达式通常是条件表达式 (计算结果为 true 或 false)。
ExpressionPtr getExpression()
\chinese
void setExpression(ExpressionPtr expression)
\chinese 设置节点使用的表达式。