AuboStudio SDK 0.6.3

函数
VariableModel

Provides methods that returns the variables that currently are registered in the system. 更多...

## 函数
std::vector< VariablePtr > | arcs::aubo_scope::VariableModel::getAll ()
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. 更多...
VariableFactoryPtr | arcs::aubo_scope::VariableModel::getVariableFactory ()
FeatureVariablePtr | arcs::aubo_scope::VariableModel::getFeatureVariable (FeaturePtr feature)
| Get the feature variable for a Feature. 更多...
std::string | arcs::aubo_scope::VariableModel::connectedTo (const std::string &receiver, const std::function< void(VariableModel *)> &slot)
| Register callback for changed 更多...
void | arcs::aubo_scope::VariableModel::disconnectFrom (const std::string &receiver)
| disconnectFrom 更多...

## 详细描述

Provides methods that returns the variables that currently are registered in the system.

A variable is registered if it has been stored in a {} instance or used for the configuration of a built-in AuboScope program node.

## 函数说明

## ◆ connectedTo()

std::string arcs::aubo_scope::VariableModel::connectedTo | ( | const std::string & | receiver,
|  | const std::function< void(VariableModel *)> & | slot
| ) |  |

Register callback for changed

参数

  receiver |
  slot |

## ◆ disconnectFrom()

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

disconnectFrom

参数

  receiver |

## ◆ get()

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.

参数

  filter | see 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.

参数

  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 {}.

## ◆ getVariableFactory()

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

返回
  a VariableFactory to create variable objects.