28#ifndef PACKET_EXTENDED_HOUSEKEEPING_2_H
29#define PACKET_EXTENDED_HOUSEKEEPING_2_H
32#include <unordered_map>
41 uint8_t collectionInterval, uint8_t amountOfSamples,
42 const std::vector<uint8_t>& samples, uint8_t amountOfArrays,
43 const std::vector<std::vector<uint8_t>>& arrays);
69 uint8_t getCollectionInterval();
70 void setCollectionInterval(
const uint8_t newCollectionInterval);
72 uint8_t getAmountOfSamples();
83 const std::vector<uint8_t>& getSamples();
90 void setSamples(
const std::vector<uint8_t>& newSamples);
91 void setSamples(std::vector<uint8_t>&& newSamples);
93 uint8_t getAmountOfArrays();
104 const std::vector<uint8_t>& getArrays();
110 void setArrays(std::vector<uint8_t>&& newArrays);
114 uint8_t collectionInterval_;
115 uint8_t amountOfSamples_;
116 std::vector<uint8_t> samples_;
117 uint8_t amountOfArrays_;
118 std::vector<std::vector<uint8_t>> arrays_;
Definition: packet_extended_housekeeping_2.h:38
void setAmountOfSamples(const uint8_t newAmountOfSamples)
Set new amount of samples. When changing this make sure that samples.size() == newAmountOfSamples or ...
Definition: packet_extended_housekeeping_2.cpp:46
uint16_t getStructureIdentifier()
Calls the packet extended housekeeping implementation of this method.
Definition: packet_extended_housekeeping_2.cpp:29
Packet & getPacket()
Calls the packet extended basic implementation of this method.
Definition: packet_extended_housekeeping_2.cpp:16
void setArrays(const std::vector< uint8_t > &newArrays)
PacketExtendedHousekeeping2 swapApplicationIdFields()
Calls the packet extended basic implementation of this method.
Definition: packet_extended_housekeeping_2.cpp:20
void setSamples(const std::vector< uint8_t > &newSamples)
Definition: packet_extended_housekeeping_2.cpp:55
void setAmountOfArrays(const uint8_t newAmountOfArrays)
Set new amount of arrays. When changing this make sure that arrays.size() == newAmountOfArrays or the...
Definition: packet_extended_housekeeping_2.cpp:69
Definition: packet_extended_housekeeping_basic.h:36
Higher level packet for the services.
Higher level packet for housekeeping and diagnostic data service. Basic packet that all the subtypes ...