\chinese 变量模型 提供返回系统中当前已注册变量的方法。变量在存储到 DataModel 实例中或 用于配置内置 AuboScope 程序节点时即被注册。 \endchinese \english VariableModel Provides methods that returns the variables that currently are registered in the system.
更多...
#include <variable_model.h>
|
| | VariableModel (VariableModel &f) |
| | VariableModel (VariableModel &&f) |
| | ~VariableModel () |
| std::vector< VariablePtr > | getAll () |
| | \chinese 获取系统中当前已注册的所有变量
|
| VariablePtr | get (const std::string &name) |
| std::vector< VariablePtr > | get (std::function< bool(VariablePtr)> filter=[](VariablePtr) { return true;}) |
| | \chinese 使用过滤器获取已注册变量的子集
|
| VariableFactoryPtr | getVariableFactory () |
| | \chinese 获取变量工厂,用于创建变量对象
|
| FeatureVariablePtr | getFeatureVariable (FeaturePtr feature) |
| | \chinese 获取特征对应的特征变量
|
| std::string | connectedTo (const std::string &receiver, const std::function< void(VariableModel *)> &slot) |
| | \chinese 注册变更回调
|
| void | disconnectFrom (const std::string &receiver) |
| | \chinese 断开回调连接
|
\chinese 变量模型 提供返回系统中当前已注册变量的方法。变量在存储到 DataModel 实例中或 用于配置内置 AuboScope 程序节点时即被注册。 \endchinese \english VariableModel Provides methods that returns the variables that currently are registered in the system.
A variable is registered if it has been stored in a DataModel instance or used for the configuration of a built-in AuboScope program node. \endenglish
在文件 variable_model.h 第 29 行定义.
◆ VariableModel() [1/3]
| arcs::aubo_scope::VariableModel::VariableModel |
( |
VariableModel & | f | ) |
|
◆ VariableModel() [2/3]
| arcs::aubo_scope::VariableModel::VariableModel |
( |
VariableModel && | f | ) |
|
◆ ~VariableModel()
| arcs::aubo_scope::VariableModel::~VariableModel |
( |
| ) |
|
◆ VariableModel() [3/3]
| arcs::aubo_scope::VariableModel::VariableModel |
( |
| ) |
|
|
private |
◆ connectedTo()
| std::string arcs::aubo_scope::VariableModel::connectedTo |
( |
const std::string & | receiver, |
|
|
const std::function< void(VariableModel *)> & | slot ) |
\chinese 注册变更回调
- 参数
-
- 返回
- 连接标识符。 \endchinese \english Register callback for changed.
- 参数
-
| receiver | the receiver identifier. |
| slot | the callback function. |
- 返回
- the connection identifier. \endenglish
引用了 VariableModel().
◆ disconnectFrom()
| void arcs::aubo_scope::VariableModel::disconnectFrom |
( |
const std::string & | receiver | ) |
|
\chinese 断开回调连接
- 参数
-
| receiver | 接收者标识。 \endchinese \english Disconnect a callback. |
| receiver | the receiver identifier. \endenglish |
◆ get() [1/2]
| VariablePtr arcs::aubo_scope::VariableModel::get |
( |
const std::string & | name | ) |
|
◆ get() [2/2]
| std::vector< VariablePtr > arcs::aubo_scope::VariableModel::get |
( |
std::function< bool(VariablePtr)> | filter = [](VariablePtr) { return true;} | ) |
|
\chinese 使用过滤器获取已注册变量的子集
- 参数
-
- 返回
- 被过滤器接受的变量集合。 \endchinese \english Get a subset of all the variables registered in the system using a filter.
- 参数
-
- 返回
- the collection of Variables that are accepted by the filter. \endenglish
◆ getAll()
| std::vector< VariablePtr > arcs::aubo_scope::VariableModel::getAll |
( |
| ) |
|
\chinese 获取系统中当前已注册的所有变量
- 返回
- 已注册变量的集合。 \endchinese \english Returns the collection of all variables that currently are registered in the system.
-
the collection of all registered variables. \endenglish
◆ getFeatureVariable()
| FeatureVariablePtr arcs::aubo_scope::VariableModel::getFeatureVariable |
( |
FeaturePtr | feature | ) |
|
\chinese 获取特征对应的特征变量
- 参数
-
- 返回
- 特征的变量。
- 异常
-
| IllegalArgumentException | 如果特征不在安装中或特征没有变量。 \endchinese \english Get the feature variable for a Feature. |
- 参数
-
| feature | the feature with a variable. |
- 返回
- the variable for the feature.
- 异常
-
| IllegalArgumentException | If feature not is present in the installation or feature has no variable, see Feature#isVariable(). \endenglish |
◆ getVariableFactory()
| VariableFactoryPtr arcs::aubo_scope::VariableModel::getVariableFactory |
( |
| ) |
|
\chinese 获取变量工厂,用于创建变量对象
- 返回
- 变量工厂。 \endchinese \english Returns a
VariableFactory to create variable objects.
-
a
VariableFactory to create variable objects. \endenglish
◆ DataSwitch
◆ d_
| void* arcs::aubo_scope::VariableModel::d_ { nullptr } |
|
private |
该类的文档由以下文件生成: