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

\chinese TCP 模型 此接口提供对 AuboScope 中当前可用的 TCP 的访问。 \endchinese \english TcpModel This interface provides access to the TCPs that are currently available in AuboScope. 更多...

#include <tcp_model.h>

Public 成员函数

 TcpModel (TcpModel &f)
 TcpModel (TcpModel &&f)
virtual ~TcpModel ()
std::vector< TCPPtr > getAll ()
 \chinese 获取AuboScope中所有TCP的集合
TCPPtr getTcp (const std::string &name)
 TCP \chinese 根据名称获取TCP
TCPPtr getDefaultTcp ()
 TCP \chinese 获取默认TCP
std::string connectedTo (const std::string &receiver, const std::function< void(TcpModel *)> &slot)
 \chinese 注册变更回调
void disconnectFrom (const std::string &receiver)
 \chinese 断开回调连接

Private 成员函数

 TcpModel ()

Private 属性

void * d_ { nullptr }

友元

class DataSwitch

详细描述

\chinese TCP 模型 此接口提供对 AuboScope 中当前可用的 TCP 的访问。 \endchinese \english TcpModel This interface provides access to the TCPs that are currently available in AuboScope.

\endenglish

在文件 tcp_model.h24 行定义.

构造及析构函数说明

◆ TcpModel() [1/3]

arcs::aubo_scope::TcpModel::TcpModel ( TcpModel & f)

引用了 TcpModel().

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

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

◆ TcpModel() [2/3]

arcs::aubo_scope::TcpModel::TcpModel ( TcpModel && f)

引用了 TcpModel().

函数调用图:

◆ ~TcpModel()

virtual arcs::aubo_scope::TcpModel::~TcpModel ( )
virtual

◆ TcpModel() [3/3]

arcs::aubo_scope::TcpModel::TcpModel ( )
private

成员函数说明

◆ connectedTo()

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

\chinese 注册变更回调

参数
receiver接收者标识。
slot回调函数。
返回
连接标识符。 \endchinese \english Register callback for changed.
参数
receiverthe receiver identifier.
slotthe callback function.
返回
the connection identifier. \endenglish

引用了 TcpModel().

函数调用图:

◆ disconnectFrom()

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

\chinese 断开回调连接

参数
receiver接收者标识。 \endchinese \english Disconnect a callback.
receiverthe receiver identifier. \endenglish

◆ getAll()

std::vector< TCPPtr > arcs::aubo_scope::TcpModel::getAll ( )

\chinese 获取AuboScope中所有TCP的集合

返回
所有TCP的集合。 \endchinese \english Returns a collection of all the TCPs in AuboScope.
A collection of all the TCPs in AuboScope. \endenglish

◆ getDefaultTcp()

TCPPtr arcs::aubo_scope::TcpModel::getDefaultTcp ( )

TCP \chinese 获取默认TCP

返回
默认TCP。 \endchinese \english Returns the default TCP.
the default TCP. \endenglish

◆ getTcp()

TCPPtr arcs::aubo_scope::TcpModel::getTcp ( const std::string & name)

TCP \chinese 根据名称获取TCP

参数
nameTCP名称。
返回
对应名称的TCP。 \endchinese \english Get a TCP by name.
参数
namethe name of the TCP.
返回
the TCP with the given name. \endenglish

◆ DataSwitch

friend class DataSwitch
friend

在文件 tcp_model.h105 行定义.

引用了 DataSwitch.

被这些函数引用 DataSwitch.

类成员变量说明

◆ d_

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

在文件 tcp_model.h107 行定义.


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