getter function

This commit is contained in:
Robin Müller 2024-11-13 14:31:09 +01:00
parent d251d7ed02
commit b2177b2363
Signed by: muellerr
GPG Key ID: A649FB78196E3849

View File

@ -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<T>::deSerialize(const uint8_t** buffer, size_t* size,
SerializeIF::Endianness streamEndianness) {
return SerializeAdapter::deSerialize(&value, buffer, size, streamEndianness);
}
template <typename T>
T PoolVariable<T>::get() const {
return value;
}
#if FSFW_CPP_OSTREAM_ENABLED == 1
template <typename T>