PDF
AuboStudio SDK  0.6.3
arcs::aubo_scope::VariableModel类 参考

变量模型 提供返回系统中当前已注册变量的方法。变量在存储到 DataModel 实例中或 用于配置内置 AuboScope 程序节点时即被注册。 更多...

#include <variable_model.h>

Public 成员函数

 VariableModel (VariableModel &f)
 VariableModel (VariableModel &&f)
 ~VariableModel ()
std::vector< VariablePtr > getAll ()
 获取系统中当前已注册的所有变量
VariablePtr get (const std::string &name)
std::vector< VariablePtr > get (std::function< bool(VariablePtr)> filter=[](VariablePtr) { return true;})
 使用过滤器获取已注册变量的子集
VariableFactoryPtr getVariableFactory ()
 获取变量工厂,用于创建变量对象
FeatureVariablePtr getFeatureVariable (FeaturePtr feature)
 获取特征对应的特征变量
std::string connectedTo (const std::string &receiver, const std::function< void(VariableModel *)> &slot)
 注册变更回调
void disconnectFrom (const std::string &receiver)
 断开回调连接

Private 成员函数

 VariableModel ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

变量模型 提供返回系统中当前已注册变量的方法。变量在存储到 DataModel 实例中或 用于配置内置 AuboScope 程序节点时即被注册。

在文件 variable_model.h29 行定义.

构造及析构函数说明

◆ VariableModel() [1/3]

arcs::aubo_scope::VariableModel::VariableModel ( VariableModel & f)

引用了 VariableModel().

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

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

◆ VariableModel() [2/3]

arcs::aubo_scope::VariableModel::VariableModel ( VariableModel && f)

引用了 VariableModel().

函数调用图:

◆ ~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 )

注册变更回调

参数
receiver接收者标识。
slot回调函数。
返回
连接标识符。

引用了 VariableModel().

函数调用图:

◆ disconnectFrom()

void arcs::aubo_scope::VariableModel::disconnectFrom ( const std::string & receiver)

断开回调连接

参数
receiver接收者标识。

◆ 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;})

使用过滤器获取已注册变量的子集

参数
filter过滤器。
返回
被过滤器接受的变量集合。

◆ getAll()

std::vector< VariablePtr > arcs::aubo_scope::VariableModel::getAll ( )

获取系统中当前已注册的所有变量

返回
已注册变量的集合。

◆ getFeatureVariable()

FeatureVariablePtr arcs::aubo_scope::VariableModel::getFeatureVariable ( FeaturePtr feature)

获取特征对应的特征变量

参数
feature带有变量的特征。
返回
特征的变量。
异常
IllegalArgumentException如果特征不在安装中或特征没有变量。

◆ getVariableFactory()

VariableFactoryPtr arcs::aubo_scope::VariableModel::getVariableFactory ( )

获取变量工厂,用于创建变量对象

返回
变量工厂。

◆ DataSwitch

friend class DataSwitch
friend

在文件 variable_model.h133 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

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

在文件 variable_model.h135 行定义.


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