AuboCaps  0.6.0
if_node.h
Go to the documentation of this file.
1 #ifndef AUBO_SCOPE_IF_NODE_H
2 #define AUBO_SCOPE_IF_NODE_H
3 
5 
6 namespace arcs {
7 namespace aubo_scope {
8 ARCS_CLASS_FORWARD(Expression);
9 ARCS_CLASS_FORWARD(IfNode);
10 
12 {
13 public:
14  IfNode(IfNode &f);
15  IfNode(IfNode &&f);
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 
34 private:
35  friend class DataSwitch;
36  IfNode();
37  void *d_{ nullptr };
38 };
39 
40 } // namespace aubo_scope
41 } // namespace arcs
42 #endif // AUBO_SCOPE_IF_NODE_H
ARCS_CLASS_FORWARD(GripForceCapability)
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16