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

TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。 更多...

#include <tcp_contribution_model.h>

Public 成员函数

 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的程序节点将变为未定义。

Private 成员函数

 TcpContributionModel ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

TCP 贡献模型 此接口提供在 AuboScope 中添加、更新和删除 TCP 的功能。

注意:此接口只能在安装贡献中使用。

在文件 tcp_contribution_model.h27 行定义.

构造及析构函数说明

◆ TcpContributionModel() [1/3]

arcs::aubo_scope::TcpContributionModel::TcpContributionModel ( TcpContributionModel & f)

引用了 TcpContributionModel().

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

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

◆ TcpContributionModel() [2/3]

arcs::aubo_scope::TcpContributionModel::TcpContributionModel ( TcpContributionModel && f)

引用了 TcpContributionModel().

函数调用图:

◆ ~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名称。
offsetTCP相对于工具输出法兰的偏移量。
返回
在AuboScope中创建并注册的TCP。
异常
TCPAlreadyAddedException如果已使用相同idKey添加过TCP。
IllegalTCPNameException如果建议的名称不匹配所需正则表达式。
IllegalArgumentException如果偏移量超出有效范围。

◆ getTcp()

TCPPtr arcs::aubo_scope::TcpContributionModel::getTcp ( const std::string & idKey)

TCP 返回此前由此AuboCap使用相同idKey添加的TCP。

参数
idKeyTCP标识符键。
返回
此前添加的TCP,如果不存在则返回null

◆ removeTcp()

void arcs::aubo_scope::TcpContributionModel::removeTcp ( const std::string & idKey)

从此AuboCap中移除已添加的TCP。使用该TCP的程序节点将变为未定义。

参数
idKey添加TCP时使用的键。
异常
TCPNotFoundException如果不存在对应idKey的TCP。

◆ updateTcp()

void arcs::aubo_scope::TcpContributionModel::updateTcp ( const std::string & idKey,
const std::vector< double > & newOffset )

更新此AuboCap已添加TCP的偏移量。

参数
idKeyTCP标识符键。
newOffsetTCP的新偏移量。
异常
TCPNotFoundException如果不存在对应idKey的TCP。
IllegalArgumentException如果偏移量超出有效范围。

◆ DataSwitch

friend class DataSwitch
friend

在文件 tcp_contribution_model.h116 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

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

在文件 tcp_contribution_model.h118 行定义.


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