ingroup ApplicationApi This interface represents variables stored with the installation.
更多...
#include <persisted_variable.h>
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.h 第 16 行定义.
◆ PersistedVariable() [1/3]
| arcs::aubo_scope::PersistedVariable::PersistedVariable |
( |
PersistedVariable & | f | ) |
|
◆ PersistedVariable() [2/3]
| arcs::aubo_scope::PersistedVariable::PersistedVariable |
( |
PersistedVariable && | f | ) |
|
◆ ~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
◆ d_
| void* arcs::aubo_scope::PersistedVariable::d_ { nullptr } |
|
private |
该类的文档由以下文件生成: