AuboStudio SDK  0.6.3
arcs::aubo_scope::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 ()
VariablePtr get (const std::string &name)
std::vector< VariablePtr > get (std::function< bool(VariablePtr)> filter=[](VariablePtr) { return true;})
 Get a subset of all the variables registered in the system using a filter.
VariableFactoryPtr getVariableFactory ()
FeatureVariablePtr getFeatureVariable (FeaturePtr feature)
 Get the feature variable for a Feature.
std::string connectedTo (const std::string &receiver, const std::function< void(VariableModel *)> &slot)
 Register callback for changed
void disconnectFrom (const std::string &receiver)

Private 成员函数

 VariableModel ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

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.

在文件 variable_model.h20 行定义.

构造及析构函数说明

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

Register callback for changed

参数
receiver
slot

引用了 VariableModel().

函数调用图:

◆ disconnectFrom()

void arcs::aubo_scope::VariableModel::disconnectFrom ( const std::string & 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;})

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.

◆ getAll()

std::vector< VariablePtr > arcs::aubo_scope::VariableModel::getAll ( )
返回
the collection of all variables that currently are registered in the system.

◆ getFeatureVariable()

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

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

◆ getVariableFactory()

VariableFactoryPtr arcs::aubo_scope::VariableModel::getVariableFactory ( )
返回
a VariableFactory to create variable objects.

◆ DataSwitch

friend class DataSwitch
friend

在文件 variable_model.h76 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

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

在文件 variable_model.h78 行定义.


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