AuboStudio SDK
0.6.3
feature_variable.h
浏览该文件的文档.
1
#ifndef AUBO_SCOPE_FEATURE_VARIABLE_H
2
#define AUBO_SCOPE_FEATURE_VARIABLE_H
3
4
#include <
aubo_caps/domain/variable/persisted_variable.h
>
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
*/
14
class
ARCS_ABI_EXPORT
FeatureVariable
:
public
PersistedVariable
15
{
16
public
:
17
FeatureVariable
(
FeatureVariable
&f);
18
FeatureVariable
(
FeatureVariable
&&f);
19
virtual
~FeatureVariable
();
20
21
private
:
22
friend
class
DataSwitch
;
23
FeatureVariable
();
24
void
*
d_
{
nullptr
};
25
};
26
27
struct
FeatureVariableFilter
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_ABI_EXPORT
#define ARCS_ABI_EXPORT
定义
class_forward.h:16
ARCS_CLASS_FORWARD
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
定义
class_forward.h:68
arcs::aubo_scope::FeatureVariable
A Feature marked as a Variable in the installation will exist even when a robot is turned off and on.
定义
feature_variable.h:15
arcs::aubo_scope::FeatureVariable::d_
void * d_
定义
feature_variable.h:24
arcs::aubo_scope::FeatureVariable::~FeatureVariable
virtual ~FeatureVariable()
arcs::aubo_scope::FeatureVariable::DataSwitch
friend class DataSwitch
定义
feature_variable.h:22
arcs::aubo_scope::FeatureVariable::FeatureVariable
FeatureVariable(FeatureVariable &f)
arcs::aubo_scope::FeatureVariable::FeatureVariable
FeatureVariable(FeatureVariable &&f)
arcs::aubo_scope::FeatureVariable::FeatureVariable
FeatureVariable()
arcs::aubo_scope::PersistedVariable::PersistedVariable
PersistedVariable(PersistedVariable &f)
arcs::aubo_scope::Variable::FEATURE
@ FEATURE
定义
variable.h:54
arcs::aubo_scope
定义
contribution_provider.h:8
arcs
定义
contribution_provider.h:7
persisted_variable.h
arcs::aubo_scope::FeatureVariableFilter
定义
feature_variable.h:28
arcs::aubo_scope::FeatureVariableFilter::operator()
bool operator()(VariablePtr var)
定义
feature_variable.h:29
include
aubo_caps
domain
variable
feature_variable.h
制作者
1.16.1