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 * Sets the expression used by the node.
20 *
21 * @param expression The expression that will be evaluated in this If Node.
22 * @return The same If Node.
23 * @throws IllegalStateException if called from a Swing-based AuboCap
24 * outside of an {@link UndoableChanges} scope (see also {@link
25 * UndoRedoManager}).
26 */
27 void setExpression(ExpressionPtr expression);
28
29 /**
30 * @return the Expression to be evaluated in this If node.
31 */
32 ExpressionPtr getExpression();
33
34private:
35 friend class DataSwitch;
37 void *d_{ nullptr };
38};
39
40} // namespace aubo_scope
41} // namespace arcs
42#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...
ExpressionPtr getExpression()
void setExpression(ExpressionPtr expression)
Sets the expression used by the node.