AuboStudio SDK  0.6.3
arcs::aubo_scope::PersistedVariable类 参考

ingroup ApplicationApi This interface represents variables stored with the installation. 更多...

#include <persisted_variable.h>

类 arcs::aubo_scope::PersistedVariable 继承关系图:
arcs::aubo_scope::PersistedVariable 的协作图:

Public 成员函数

 PersistedVariable (PersistedVariable &f)
 PersistedVariable (PersistedVariable &&f)
virtual ~PersistedVariable ()
bool isResolvable ()
 \chinese 持久化变量无法保证始终存在。当终端用户加载不包含该变量的不同安装或删除该变量时, 持久化变量将不可用。如果变量无法解析,存储了PersistedVariable的程序节点将变 为未定义。
Public 成员函数 继承自 arcs::aubo_scope::Variable
 Variable (Variable &f)
 Variable (Variable &&f)
virtual ~Variable ()
Type getType ()
 \chinese 获取变量类型
std::string getDisplayName ()
 \chinese 获取变量显示名称。注意:变量可随时被重命名。
bool equals (VariablePtr object)
 \chinese 判断是否引用相同的内部变量
size_t hashCode ()
 \chinese 获取哈希码
std::string toString ()
 \chinese 获取变量的字符串表示

Protected 成员函数

 PersistedVariable ()
Protected 成员函数 继承自 arcs::aubo_scope::Variable
 Variable ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

额外继承的成员函数

Public 类型 继承自 arcs::aubo_scope::Variable
enum  Type : int { GLOBAL , VALUE_PERSISTED , FEATURE }
 The variable type used to determine which type of variable this instance is. 更多...

详细描述

ingroup ApplicationApi This interface represents variables stored with the installation.

These variables are defined in the installation and will exist even when a robot is turned off and on.

在文件 persisted_variable.h16 行定义.

构造及析构函数说明

◆ PersistedVariable() [1/3]

arcs::aubo_scope::PersistedVariable::PersistedVariable ( PersistedVariable & f)

引用了 PersistedVariable().

被这些函数引用 PersistedVariable() , 以及 PersistedVariable().

函数调用图:
这是这个函数的调用关系图:

◆ PersistedVariable() [2/3]

arcs::aubo_scope::PersistedVariable::PersistedVariable ( PersistedVariable && f)

引用了 PersistedVariable().

函数调用图:

◆ ~PersistedVariable()

virtual arcs::aubo_scope::PersistedVariable::~PersistedVariable ( )
virtual

◆ PersistedVariable() [3/3]

arcs::aubo_scope::PersistedVariable::PersistedVariable ( )
protected

成员函数说明

◆ isResolvable()

bool arcs::aubo_scope::PersistedVariable::isResolvable ( )

\chinese 持久化变量无法保证始终存在。当终端用户加载不包含该变量的不同安装或删除该变量时, 持久化变量将不可用。如果变量无法解析,存储了PersistedVariable的程序节点将变 为未定义。

返回
如果持久化变量可解析(即存在于当前安装中)返回true。 \endchinese \english A persisted variable can not be guaranteed to be present. This method can be used to determine, if the variable is present.

The persisted variable will not be present, if the end user loads a different installation which does not contain the variable, or if the variable is deleted by the end user.

A program node storing a PersistedVariable in its Data Model will be undefined if the variable cannot be resolved (i.e. the variable is not present).

返回
true, if this persisted variable is resolvable (i.e. present in the current installation). \endenglish

◆ DataSwitch

friend class DataSwitch
friend

在文件 persisted_variable.h53 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

void* arcs::aubo_scope::PersistedVariable::d_ { nullptr }
private

在文件 persisted_variable.h54 行定义.


该类的文档由以下文件生成: