AuboStudio SDK  0.6.3
tcp.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_TCP_H
2#define AUBO_SCOPE_TCP_H
3
4#include <string>
5#include <vector>
7
8namespace arcs {
9namespace aubo_scope {
11
12/**
13 * @ingroup InstallationApi
14 * \chinese
15 * TCP 接口
16 * 此接口表示 AuboScope 中的一个 TCP(工具中心点)。可以是用户定义的 TCP,也可以
17 * 是由 AuboCap 添加的 TCP。
18 * \endchinese
19 * \english
20 * TCP
21 * This interface represents a TCP in AuboScope. This can either be a
22 * user-defined TCP or a TCP added by a AuboCap.
23 * \endenglish
24 */
26{
27public:
28 TCP(TCP &f);
29 TCP(TCP &&f);
31
32 /**
33 * @ingroup TCP
34 * \chinese
35 * 获取TCP相对于工具输出法兰的偏移量
36 * @return TCP偏移量。
37 * \endchinese
38 * \english
39 * Returns the offset of the TCP with respect to the tool output flange.
40 * @return The offset of the TCP.
41 * \endenglish
42 */
43 std::vector<double> getOffset();
44
45 /**
46 * @ingroup TCP
47 * \chinese
48 * 获取TCP显示名称。注意:TCP可随时被重命名。
49 * @return TCP名称。
50 * \endchinese
51 * \english
52 * Note: The TCP can be renamed at any time.
53 * @return The name of the TCP.
54 * \endenglish
55 */
56 std::string getDisplayName();
57
58 /**
59 * @ingroup TCP
60 * \chinese
61 * TCP无法保证始终存在。终端用户可加载不包含该TCP的其他安装,或该TCP可被终端用户
62 * 或添加该TCP的AuboCap删除。此方法用于判断TCP是否存在。
63 * @return 如果TCP存在返回<code>true</code>,否则返回<code>false</code>。
64 * \endchinese
65 * \english
66 * A TCP cannot be guaranteed to be present in AuboScope. The end user can
67 * load a different installation (not containing the TCP) or the TCP was
68 * removed by the end user or the AuboCap that added the tcp. This method
69 * can be used to determine, if the TCP is present.
70 *
71 * @return <code>true</code> if this TCP is present in AuboScope, otherwise
72 * <code>false</code>.
73 * \endenglish
74 */
76
77 /**
78 * @ingroup TCP
79 * \chinese
80 * 获取哈希码
81 * @return 哈希码。
82 * \endchinese
83 * \english
84 * Returns the hash code.
85 * @return the hash code.
86 * \endenglish
87 */
88 size_t hashCode();
89
90private:
91 friend class DataSwitch;
92 TCP();
93 void *d_{ nullptr };
94};
95
96} // namespace aubo_scope
97} // namespace arcs
98
99#endif // AUBO_SCOPE_TCP_H
#define ARCS_ABI_EXPORT
#define ARCS_CLASS_FORWARD(C)
Macro that forward declares a class and defines the respective smartpointers through ARCS_DECLARE_PTR...
\chinese TCP 接口 此接口表示 AuboScope 中的一个 TCP(工具中心点)。可以是用户定义的 TCP,也可以 是由 AuboCap 添加的 TCP。 \endchinese \eng...
定义 tcp.h:26
bool isResolvable()
\chinese TCP无法保证始终存在。终端用户可加载不包含该TCP的其他安装,或该TCP可被终端用户 或添加该TCP的AuboCap删除。此方法用于判断TCP是否存在。
std::string getDisplayName()
\chinese 获取TCP显示名称。注意:TCP可随时被重命名。
std::vector< double > getOffset()
\chinese 获取TCP相对于工具输出法兰的偏移量
friend class DataSwitch
定义 tcp.h:91
size_t hashCode()
\chinese 获取哈希码