AuboStudio SDK  0.6.3
global_variable.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_GLOBAL_VARIABLE_H
2#define AUBO_SCOPE_GLOBAL_VARIABLE_H
3
5
6namespace arcs {
7namespace aubo_scope {
9
10/**
11 * Global variables are available everywhere in a program.
12 */
14{
15public:
18 virtual ~GlobalVariable();
19
20protected:
22
23private:
24 friend class DataSwitch;
25 void *d_{ nullptr };
26};
27
29{
30 bool operator()(VariablePtr var)
31 {
32 return std::dynamic_pointer_cast<GlobalVariable>(var) != nullptr &&
33 var->getType() == Variable::GLOBAL;
34 }
35};
36
37} // namespace aubo_scope
38} // namespace arcs
39
40#endif // AUBO_SCOPE_GLOBAL_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...
Global variables are available everywhere in a program.
GlobalVariable(GlobalVariable &f)
GlobalVariable(GlobalVariable &&f)