AuboStudio SDK 0.6.3

tcp_model.h
浏览该文件的文档.
1 #ifndef AUBO_SCOP_TCP_MODEL_H
2 #define AUBO_SCOP_TCP_MODEL_H
3
4 #include <vector>
5 #include <functional>
6 #include <aubo_caps/domain/tcp/tcp.h>
7
8 namespace arcs {
9 namespace aubo_scope {
10 ARCS_CLASS_FORWARD(TcpModel);
11
12 /**
13 * This interface provides access to the TCPs that are currently available in
14 * AuboScope.
15 */
16 class ARCS_ABI_EXPORT TcpModel
17 {
18 public:
19 TcpModel(TcpModel &f);
20 TcpModel(TcpModel &&f);
21 virtual ~TcpModel();
22
23 /**
24 * @return A collection of all the TCPs in AuboScope, including user-defined
25 * TCPs and TCPs added by aubo_studio plugins.
26 */
27 std::vector<TCPPtr> getAll();
28 TCPPtr getTcp(const std::string &name);
29
30 TCPPtr getDefaultTcp();
31
32 std::string connectedTo(const std::string &receiver,
33 const std::function<void(TcpModel *)> &slot);
34
35 void disconnectFrom(const std::string &receiver);
36
37 private:
38 friend class DataSwitch;
39 TcpModel();
40 void *d_{ nullptr };
41 };
42
43 } // namespace aubo_scope
44 } // namespace arcs
45
46 #endif // AUBO_SCOP_TCP_MODEL_H
ARCS_ABI_EXPORT
#define ARCS_ABI_EXPORT
Definition: class_forward.h:16
arcs::aubo_scope::TcpModel
This interface provides access to the TCPs that are currently available in AuboScope.
Definition: tcp_model.h:17
arcs::aubo_scope::TcpModel::getTcp
TCPPtr getTcp(const std::string &name)
arcs::aubo_scope::TcpModel::getAll
std::vector< TCPPtr > getAll()
arcs::aubo_scope::TcpModel::TcpModel
TcpModel(TcpModel &f)
arcs::aubo_scope::TcpModel::disconnectFrom
void disconnectFrom(const std::string &receiver)
arcs::aubo_scope::TcpModel::~TcpModel
virtual ~TcpModel()
arcs::aubo_scope::TcpModel::getDefaultTcp
TCPPtr getDefaultTcp()
arcs::aubo_scope::TcpModel::TcpModel
TcpModel()
arcs::aubo_scope::TcpModel::TcpModel
TcpModel(TcpModel &&f)
arcs::aubo_scope::TcpModel::connectedTo
std::string connectedTo(const std::string &receiver, const std::function< void(TcpModel *)> &slot)
arcs::aubo_scope::ARCS_CLASS_FORWARD
ARCS_CLASS_FORWARD(GripForceCapability)
arcs
Definition: contribution_provider.h:7
tcp.h