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 * This interface provides access to the TCPs that are currently available in
14 * AuboScope.
15 */
17{
18public:
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
37private:
38 friend class DataSwitch;
40 void *d_{ nullptr };
41};
42
43} // namespace aubo_scope
44} // namespace arcs
45
46#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)
void disconnectFrom(const std::string &receiver)
std::vector< TCPPtr > getAll()
std::string connectedTo(const std::string &receiver, const std::function< void(TcpModel *)> &slot)