From b2177b2363d519b72de8d4f5c4aa0f306840648b Mon Sep 17 00:00:00 2001 From: Robin Mueller Date: Wed, 13 Nov 2024 14:31:09 +0100 Subject: [PATCH] getter function --- src/fsfw/datapool/PoolVariable.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/fsfw/datapool/PoolVariable.h b/src/fsfw/datapool/PoolVariable.h index e5c555e7..a6b82174 100644 --- a/src/fsfw/datapool/PoolVariable.h +++ b/src/fsfw/datapool/PoolVariable.h @@ -76,6 +76,8 @@ class PoolVariable : public PoolObjectBase { virtual ~PoolVariable() {}; + T get() const; + /** * @brief This is the local copy of the data pool entry. * @details The user can work on this attribute @@ -258,6 +260,10 @@ ReturnValue_t PoolVariable::deSerialize(const uint8_t** buffer, size_t* size, SerializeIF::Endianness streamEndianness) { return SerializeAdapter::deSerialize(&value, buffer, size, streamEndianness); } +template +T PoolVariable::get() const { + return value; +} #if FSFW_CPP_OSTREAM_ENABLED == 1 template