7 #ifndef Fw_DpContainer_HPP 8 #define Fw_DpContainer_HPP 20 class DpContainerTester;
254 void initUserDataField();
DpState getDpState() const
Get the data product state.
A data product Container.
U16 FwPacketDescriptorType
The width of packet descriptors when they are serialized by the framework.
void clear()
Clear external buffer.
FwDpPriorityType getPriority() const
void setId(FwDpIdType id)
Set the id.
void setTimeTag(Fw::Time timeTag)
Set the time tag.
Header::UserData m_userData
The user data.
PlatformSizeType FwSizeType
void setHeaderHash(const Utils::HashBuffer &hash)
Set the header hash.
U32 FwDpPriorityType
The type of a data product priority.
void setDataSize(FwSizeType dataSize)
Set the data size.
static constexpr FwSizeType MIN_PACKET_SIZE
Time m_timeTag
The time tag.
void setDpState(DpState dpState)
Set the data product state.
The size of the serial representation.
void setDataHash(Utils::HashBuffer hash)
Set the data hash.
void setProcTypes(DpCfg::ProcType::SerialType procTypes)
Set the processing types bit mask.
Fw::ExternalSerializeBufferWithMemberCopy m_dataBuffer
Utils::HashBuffer getHeaderHash() const
static constexpr FwSizeType HEADER_HASH_OFFSET
The header hash offset.
void setBuffer(const Buffer &buffer)
Set the packet buffer.
SerializeStatus
forward declaration for string
FwSizeType m_dataSize
The data size.
FwDpPriorityType m_priority
The priority.
U16 FwSizeStoreType
The type used to serialize a size value.
virtual ~DpContainer()
Destructor.
void updateHeaderHash()
Compute and set the header hash.
Utils::HashBuffer getDataHash() const
void invalidateBuffer()
Invalidate the packet buffer.
Utils::HashBuffer computeDataHash() const
Fw::Time getTimeTag() const
#define HASH_DIGEST_LENGTH
DpState m_dpState
The data product state.
FwSizeType getDataHashOffset() const
Get the data hash offset.
static constexpr FwSizeType getPacketSizeForDataSize(FwSizeType dataSize)
Get the packet size for a given data size.
FwSizeType getPacketSize() const
Get the packet size corresponding to the data size.
Fw::Buffer getBuffer() const
Success::T checkDataHash(Utils::HashBuffer &storedHash, Utils::HashBuffer &computedHash) const
Check the data hash.
static constexpr FwSizeType DATA_OFFSET
The data offset.
uint8_t U8
8-bit unsigned integer
U8 SerialType
The serial representation type.
Utils::HashBuffer computeHeaderHash() const
DpContainer & operator=(const DpContainer &src)=default
Copy assignment operator.
DpCfg::ProcType::SerialType getProcTypes() const
FwIdType FwDpIdType
The type of a data product identifier.
void updateDataHash()
Update the data hash.
Fw::DpState getState() const
Get the product state.
DpCfg::ProcType::SerialType m_procTypes
The processing types.
A container class for holding a hash buffer.
Success::T checkHeaderHash(Utils::HashBuffer &storedHash, Utils::HashBuffer &computedHash) const
Check the header hash.
External serialize buffer with member copy semantics.
Fw::SerializeStatus deserializeHeader()
FwSizeType getDataSize() const
Implementation of malloc based allocator.
friend class Fw::DpContainerTester
void setPriority(FwDpPriorityType priority)
Set the priority.
Buffer m_buffer
The packet buffer.
DpContainer()
Constructor for container with default initialization.