TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。
更多...
#include <tcp_contribution_model.h>
|
| | TcpContributionModel (TcpContributionModel &f) |
| | TcpContributionModel (TcpContributionModel &&f) |
| virtual | ~TcpContributionModel () |
| TCPPtr | addTcp (const std::string &idKey, const std::string &suggested_name, const std::vector< double > &offset) |
| | TCP 向当前AuboScope安装中添加一个TCP。添加后终端用户可选择该TCP,但不可修改。
|
| TCPPtr | getTcp (const std::string &idKey) |
| | TCP 返回此前由此AuboCap使用相同idKey添加的TCP。
|
| void | updateTcp (const std::string &idKey, const std::vector< double > &newOffset) |
| | 更新此AuboCap已添加TCP的偏移量。
|
| void | removeTcp (const std::string &idKey) |
| | 从此AuboCap中移除已添加的TCP。使用该TCP的程序节点将变为未定义。
|
TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。
注意:此接口只能在安装贡献中使用。
在文件 tcp_contribution_model.h 第 27 行定义.
◆ TcpContributionModel() [1/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
TcpContributionModel & | f | ) |
|
◆ TcpContributionModel() [2/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
TcpContributionModel && | f | ) |
|
◆ ~TcpContributionModel()
| virtual arcs::aubo_scope::TcpContributionModel::~TcpContributionModel |
( |
| ) |
|
|
virtual |
◆ TcpContributionModel() [3/3]
| arcs::aubo_scope::TcpContributionModel::TcpContributionModel |
( |
| ) |
|
|
private |
◆ addTcp()
| TCPPtr arcs::aubo_scope::TcpContributionModel::addTcp |
( |
const std::string & | idKey, |
|
|
const std::string & | suggested_name, |
|
|
const std::vector< double > & | offset ) |
TCP 向当前AuboScope安装中添加一个TCP。添加后终端用户可选择该TCP,但不可修改。
- 参数
-
| idKey | 用于标识此TCP的键。该键仅对此AuboCap有效。 |
| suggested_name | 建议的TCP名称。 |
| offset | TCP相对于工具输出法兰的偏移量。 |
- 返回
- 在AuboScope中创建并注册的TCP。
- 异常
-
| TCPAlreadyAddedException | 如果已使用相同idKey添加过TCP。 |
| IllegalTCPNameException | 如果建议的名称不匹配所需正则表达式。 |
| IllegalArgumentException | 如果偏移量超出有效范围。 |
◆ getTcp()
| TCPPtr arcs::aubo_scope::TcpContributionModel::getTcp |
( |
const std::string & | idKey | ) |
|
TCP 返回此前由此AuboCap使用相同idKey添加的TCP。
- 参数
-
- 返回
- 此前添加的TCP,如果不存在则返回
null。
◆ removeTcp()
| void arcs::aubo_scope::TcpContributionModel::removeTcp |
( |
const std::string & | idKey | ) |
|
从此AuboCap中移除已添加的TCP。使用该TCP的程序节点将变为未定义。
- 参数
-
- 异常
-
| TCPNotFoundException | 如果不存在对应idKey的TCP。 |
◆ updateTcp()
| void arcs::aubo_scope::TcpContributionModel::updateTcp |
( |
const std::string & | idKey, |
|
|
const std::vector< double > & | newOffset ) |
更新此AuboCap已添加TCP的偏移量。
- 参数
-
| idKey | TCP标识符键。 |
| newOffset | TCP的新偏移量。 |
- 异常
-
| TCPNotFoundException | 如果不存在对应idKey的TCP。 |
| IllegalArgumentException | 如果偏移量超出有效范围。 |
◆ DataSwitch
◆ d_
| void* arcs::aubo_scope::TcpContributionModel::d_ { nullptr } |
|
private |
该类的文档由以下文件生成: