minor adaptions

This commit is contained in:
Robin Müller 2024-12-12 17:43:34 +01:00
parent fc69f9da3e
commit 6c524196a7
2 changed files with 9 additions and 14 deletions

View File

@ -1,9 +1,4 @@
#ifndef FSFW_INC_FSFW_HOUSEKEEPING_H_ #pragma once
#define FSFW_INC_FSFW_HOUSEKEEPING_H_
#include "src/core/housekeeping/HousekeepingMessage.h" #include "fsfw/housekeeping/Dataset.h"
#include "src/core/housekeeping/HousekeepingPacketDownlink.h" #include "fsfw/housekeeping/DatasetElement.h"
#include "src/core/housekeeping/HousekeepingSetPacket.h"
#include "src/core/housekeeping/HousekeepingSnapshot.h"
#endif /* FSFW_INC_FSFW_HOUSEKEEPING_H_ */

View File

@ -17,12 +17,6 @@ class Dataset : public SerializeIF {
[[nodiscard]] dp::structure_id_t getStructureId() const { return sid; } [[nodiscard]] dp::structure_id_t getStructureId() const { return sid; }
void setAllChildrenValidity(bool valid) {
for (auto &serializable : serializables) {
serializable.get().setValid(valid);
}
}
void addSerializable(const std::reference_wrapper<SerializableWithValidityIF> serializable) { void addSerializable(const std::reference_wrapper<SerializableWithValidityIF> serializable) {
serializables.push_back(serializable); serializables.push_back(serializable);
} }
@ -95,6 +89,12 @@ class Dataset : public SerializeIF {
return SerializeIF::serialize(buffer, serSize, maxSize, streamEndianness); return SerializeIF::serialize(buffer, serSize, maxSize, streamEndianness);
} }
void setChildrenValidity(bool valid) {
for (auto &serializable : serializables) {
serializable.get().setValid(true);
}
}
[[nodiscard]] size_t getSerializedSize() const override { [[nodiscard]] size_t getSerializedSize() const override {
size_t size = 0; size_t size = 0;
for (auto &serializable : serializables) { for (auto &serializable : serializables) {