AuboStudio SDK  0.6.3
feature_variable.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_FEATURE_VARIABLE_H
2#define AUBO_SCOPE_FEATURE_VARIABLE_H
3
5
6namespace arcs {
7namespace aubo_scope {
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{
16public:
20
21private:
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
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
A Feature marked as a Variable in the installation will exist even when a robot is turned off and on.
FeatureVariable(FeatureVariable &f)
FeatureVariable(FeatureVariable &&f)
PersistedVariable(PersistedVariable &f)