AuboStudio SDK  0.6.3
payload_model.h
浏览该文件的文档.
1#ifndef AUBO_SCOPE_PAYLOAD_MODEL_H
2#define AUBO_SCOPE_PAYLOAD_MODEL_H
3
4#include <vector>
6
7namespace arcs {
8namespace aubo_scope {
11
12/**
13 * @ingroup ApplicationApi
14 * \~chinese 获取负载参数API接口
15 * \~english API interface for payload parameters
16 */
17
19{
20public:
23 virtual ~PayloadModel();
24
25 /**
26 * @ingroup PayloadModel
27 * @brief getPayloads
28 * @return A collection of all the payloads from the current
29 * installation in AuboScope, including user-defined payloads and
30 * payloads added by aubo_studio plugins.
31 */
32 std::vector<PayloadPtr> getPayloads() const;
33
34 /**
35 * @ingroup PayloadModel
36 * @ref Payload
37 * @brief getPayload
38 * @param name
39 * @return
40 */
41 PayloadPtr getPayload(const std::string &name) const;
42
43 /**
44 * @ingroup PayloadModel
45 * @ref Payload
46 * @brief getDefaultPayload
47 * @return
48 */
49 PayloadPtr getDefaultPayload() const;
50
51 /**
52 * @ingroup PayloadModel
53 * @ref Payload
54 * @brief getCurrentPayload
55 * @return
56 */
57 PayloadPtr getCurrentPayload() const;
58
59private:
60 friend class DataSwitch;
62 void *d_{ nullptr };
63};
64} // namespace aubo_scope
65} // namespace arcs
66
67#endif // PAYLOADMODEL_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...
获取负载参数API接口
PayloadModel(PayloadModel &&f)
PayloadPtr getCurrentPayload() const
Payload
PayloadPtr getDefaultPayload() const
Payload
PayloadPtr getPayload(const std::string &name) const
Payload
std::vector< PayloadPtr > getPayloads() const
getPayloads
获取负载参数API接口