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

\chinese 变量模型 提供返回系统中当前已注册变量的方法。变量在存储到 DataModel 实例中或 用于配置内置 AuboScope 程序节点时即被注册。 \endchinese \english VariableModel Provides methods that returns the variables that currently are registered in the system. 更多...

#include <variable_model.h>

Public 成员函数

 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 断开回调连接

Private 成员函数

 VariableModel ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

\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.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 )

\chinese 注册变更回调

参数
receiver接收者标识。
slot回调函数。
返回
连接标识符。 \endchinese \english Register callback for changed.
参数
receiverthe receiver identifier.
slotthe 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.
receiverthe 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 使用过滤器获取已注册变量的子集

参数
filter过滤器。
返回
被过滤器接受的变量集合。 \endchinese \english Get a subset of all the variables registered in the system using a filter.
参数
filtersee VariableFilterFactory for examples.
返回
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 获取特征对应的特征变量

参数
feature带有变量的特征。
返回
特征的变量。
异常
IllegalArgumentException如果特征不在安装中或特征没有变量。 \endchinese \english Get the feature variable for a Feature.
参数
featurethe feature with a variable.
返回
the variable for the feature.
异常
IllegalArgumentExceptionIf 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

friend class DataSwitch
friend

在文件 variable_model.h133 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

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

在文件 variable_model.h135 行定义.


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