7 #ifndef Fw_DpContainer_HPP 8 #define Fw_DpContainer_HPP 243 void initUserDataField();
DpState getDpState() const
Get the data product state.
A data product Container.
void clear()
clear external buffer
#define HASH_DIGEST_LENGTH
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.
void setHeaderHash(const Utils::HashBuffer &hash)
Set the header hash.
void setDataSize(FwSizeType dataSize)
Set the data size.
U8 SerialType
The serial representation type.
static constexpr FwSizeType MIN_PACKET_SIZE
Time m_timeTag
The time tag.
void setDpState(DpState dpState)
Set the data product state.
PlatformSizeType FwSizeType
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
U32 FwPacketDescriptorType
The size of the serial representation.
FwSizeType m_dataSize
The data size.
FwDpPriorityType m_priority
The priority.
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
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
Utils::HashBuffer computeHeaderHash() const
DpContainer & operator=(const DpContainer &src)=default
Copy assignment operator.
DpCfg::ProcType::SerialType getProcTypes() const
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.
Fw::SerializeStatus deserializeHeader()
FwSizeType getDataSize() const
void setPriority(FwDpPriorityType priority)
Set the priority.
Buffer m_buffer
The packet buffer.
DpContainer()
Constructor for container with default initialization.