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>
7
8namespace arcs {
9namespace aubo_scope {
11
12/**
13 * @ingroup ApplicationApi
14 * This interface provides access to the TCPs that are currently available in
15 * AuboScope.
16 */
18{
19public:
22 virtual ~TcpModel();
23
24 /**
25 * @ingroup TcpModel
26 * @return A collection of all the TCPs in AuboScope, including user-defined
27 * TCPs and TCPs added by aubo_studio plugins.
28 */
29 std::vector<TCPPtr> getAll();
30
31 /**
32 * @ingroup TcpModel
33 * @ref TCP
34 * @brief getTcp
35 * @param name
36 * @return
37 */
38 TCPPtr getTcp(const std::string &name);
39
40 /**
41 * @ingroup TcpModel
42 * @ref TCP
43 * @brief getDefaultTcp
44 * @return
45 */
46 TCPPtr getDefaultTcp();
47
48 /**
49 * @ingroup TcpModel
50 * @brief connectedTo
51 * @param receiver
52 * @param slot
53 * @return
54 */
55 std::string connectedTo(const std::string &receiver,
56 const std::function<void(TcpModel *)> &slot);
57 /**
58 * @ingroup TcpModel
59 * @brief disconnectFrom
60 * @param receiver
61 */
62 void disconnectFrom(const std::string &receiver);
63
64private:
65 friend class DataSwitch;
67 void *d_{ nullptr };
68};
69
70} // namespace aubo_scope
71} // namespace arcs
72
73#endif // AUBO_SCOP_TCP_MODEL_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...
This interface provides access to the TCPs that are currently available in AuboScope.
TCPPtr getTcp(const std::string &name)
TCP
void disconnectFrom(const std::string &receiver)
disconnectFrom
std::vector< TCPPtr > getAll()
std::string connectedTo(const std::string &receiver, const std::function< void(TcpModel *)> &slot)
connectedTo