| pnd-cpp-sdk 1.5.1

Loading...
Searching...
No Matches
groupFeedback.hpp
1#pragma once
2
3#include <vector>
4
5#include "aios.h"
6
7 namespace Pnd {
8
13 class GroupFeedback final {
14 public:
18 GroupFeedback(size_t number_of_modules);
19
23 GroupFeedback(PndGroupFeedbackPtr group_feedback);
24
28 ~GroupFeedback() noexcept;
29
33 size_t size() const;
34
38 const PndFeedbackPtr &operator[](size_t index) const;
39
43 const int Duration() { return pndGroupFeedbackGetDuration(internal_); };
44
45 public:
50 PndGroupFeedbackPtr internal_;
51
52 private:
57 const bool manage_pointer_lifetime_;
58
62 const size_t number_of_modules_;
63
67 std::vector<PndFeedbackPtr> feedbacks_;
68};
69
70} // namespace Pnd
Pnd::GroupFeedback
A list of Feedback objects that can be received from a Group of modules; the size() must match the nu...
Definition groupFeedback.hpp:13
Pnd::GroupFeedback::~GroupFeedback
~GroupFeedback() noexcept
Destructor cleans up group feedback object as necessary.
Definition groupFeedback.cpp:21
Pnd::GroupFeedback::operator[]
const PndFeedbackPtr & operator[](size_t index) const
Access the feedback for an individual module.
Definition groupFeedback.cpp:27
Pnd::GroupFeedback::Duration
const int Duration()
Get the duration of the command sent to recv.
Definition groupFeedback.hpp:43
Pnd::GroupFeedback::internal_
PndGroupFeedbackPtr internal_
Definition groupFeedback.hpp:50
Pnd::GroupFeedback::size
size_t size() const
Returns the number of module feedbacks in this group feedback.
Definition groupFeedback.cpp:25