getter function
This commit is contained in:
parent
d251d7ed02
commit
b2177b2363
@ -76,6 +76,8 @@ class PoolVariable : public PoolObjectBase {
|
|||||||
|
|
||||||
virtual ~PoolVariable() {};
|
virtual ~PoolVariable() {};
|
||||||
|
|
||||||
|
T get() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This is the local copy of the data pool entry.
|
* @brief This is the local copy of the data pool entry.
|
||||||
* @details The user can work on this attribute
|
* @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) {
|
SerializeIF::Endianness streamEndianness) {
|
||||||
return SerializeAdapter::deSerialize(&value, buffer, size, streamEndianness);
|
return SerializeAdapter::deSerialize(&value, buffer, size, streamEndianness);
|
||||||
}
|
}
|
||||||
|
template <typename T>
|
||||||
|
T PoolVariable<T>::get() const {
|
||||||
|
return value;
|
||||||
|
}
|
||||||
|
|
||||||
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
#if FSFW_CPP_OSTREAM_ENABLED == 1
|
||||||
template <typename T>
|
template <typename T>
|
||||||
|
Loading…
Reference in New Issue
Block a user