AuboCaps  0.6.0
feature_variable.h
Go to the documentation of this file.
1 #ifndef AUBO_SCOPE_FEATURE_VARIABLE_H
2 #define AUBO_SCOPE_FEATURE_VARIABLE_H
3 
5 
6 namespace arcs {
7 namespace aubo_scope {
8 ARCS_CLASS_FORWARD(FeatureVariable);
9 
10 /**
11  * A Feature marked as a Variable in the installation will exist even when a
12  * robot is turned off and on.
13  */
15 {
16 public:
19  virtual ~FeatureVariable();
20 
21 private:
22  friend class DataSwitch;
24  void *d_{ nullptr };
25 };
26 
28 {
29  bool operator()(VariablePtr var)
30  {
31  return std::dynamic_pointer_cast<FeatureVariable>(var) != nullptr &&
32  var->getType() == Variable::FEATURE;
33  }
34 };
35 
36 } // namespace aubo_scope
37 } // namespace arcs
38 #endif // AUBO_SCOPE_FEATURE_VARIABLE_H
ARCS_CLASS_FORWARD(GripForceCapability)
A Feature marked as a Variable in the installation will exist even when a robot is turned off and on...
This interface represents variables stored with the installation.
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16