A data product Container.
More...
#include <Fw/Dp/DpContainer.hpp>
A data product Container.
Definition at line 21 of file DpContainer.hpp.
◆ DpContainer() [1/2]
Constructor for initialized container.
- Parameters
-
id | The container id |
buffer | The buffer |
Definition at line 19 of file DpContainer.cpp.
◆ DpContainer() [2/2]
Fw::DpContainer::DpContainer |
( |
| ) |
|
Constructor for container with default initialization.
Definition at line 28 of file DpContainer.cpp.
◆ ~DpContainer()
virtual Fw::DpContainer::~DpContainer |
( |
| ) |
|
|
inlinevirtual |
◆ checkDataHash()
Check the data hash.
- Parameters
-
storedHash | The stored hash (output) |
computedHash | The computed hash (output) |
Definition at line 228 of file DpContainer.cpp.
◆ checkHeaderHash()
Check the header hash.
- Parameters
-
storedHash | The stored hash (output) |
computedHash | The computed hash (output) |
Definition at line 181 of file DpContainer.cpp.
◆ computeDataHash()
Compute the data hash from the data
- Returns
- The hash
Definition at line 198 of file DpContainer.cpp.
◆ computeHeaderHash()
Compute the header hash from the header data
- Returns
- The hash
Definition at line 158 of file DpContainer.cpp.
◆ deserializeHeader()
Deserialize the header from the packet buffer Buffer must be valid, and its size must be at least MIN_PACKET_SIZE Before calling this function, you should call checkHeaderHash() to check the header hash
- Returns
- The serialize status
Definition at line 38 of file DpContainer.cpp.
◆ getBuffer()
Get the packet buffer
- Returns
- The buffer
Definition at line 99 of file DpContainer.hpp.
◆ getDataHash()
◆ getDataHashOffset()
FwSizeType Fw::DpContainer::getDataHashOffset |
( |
| ) |
const |
|
inline |
◆ getDataSize()
Get the data size
- Returns
- The data size
Definition at line 95 of file DpContainer.hpp.
◆ getDpState()
DpState Fw::DpContainer::getDpState |
( |
| ) |
const |
|
inline |
◆ getHeaderHash()
Get the stored header hash
- Returns
- The hash
Definition at line 149 of file DpContainer.cpp.
◆ getId()
◆ getPacketSize()
FwSizeType Fw::DpContainer::getPacketSize |
( |
| ) |
const |
|
inline |
Get the packet size corresponding to the data size.
Definition at line 102 of file DpContainer.hpp.
◆ getPacketSizeForDataSize()
Get the packet size for a given data size.
- Parameters
-
Definition at line 232 of file DpContainer.hpp.
◆ getPriority()
◆ getProcTypes()
Get the processing types
- Returns
- The processing types
Definition at line 117 of file DpContainer.hpp.
◆ getState()
◆ getTimeTag()
Fw::Time Fw::DpContainer::getTimeTag |
( |
| ) |
const |
|
inline |
◆ invalidateBuffer()
void Fw::DpContainer::invalidateBuffer |
( |
| ) |
|
|
inline |
◆ operator=()
Copy assignment operator.
◆ serializeHeader()
void Fw::DpContainer::serializeHeader |
( |
| ) |
|
Serialize the header into the packet buffer and update the header hash Buffer must be valid, and its size must be at least MIN_PACKET_SIZE
Definition at line 91 of file DpContainer.cpp.
◆ setBuffer()
void Fw::DpContainer::setBuffer |
( |
const Buffer & |
buffer | ) |
|
◆ setDataHash()
◆ setDataSize()
void Fw::DpContainer::setDataSize |
( |
FwSizeType |
dataSize | ) |
|
|
inline |
◆ setDpState()
void Fw::DpContainer::setDpState |
( |
DpState |
dpState | ) |
|
|
inline |
Set the data product state.
- Parameters
-
dpState | The data product state |
Definition at line 158 of file DpContainer.hpp.
◆ setHeaderHash()
◆ setId()
◆ setPriority()
◆ setProcTypes()
Set the processing types bit mask.
- Parameters
-
procTypes | The processing types |
Definition at line 152 of file DpContainer.hpp.
◆ setTimeTag()
void Fw::DpContainer::setTimeTag |
( |
Fw::Time |
timeTag | ) |
|
|
inline |
◆ updateDataHash()
void Fw::DpContainer::updateDataHash |
( |
| ) |
|
◆ updateHeaderHash()
void Fw::DpContainer::updateHeaderHash |
( |
| ) |
|
◆ DATA_OFFSET
◆ HEADER_HASH_OFFSET
◆ m_buffer
Buffer Fw::DpContainer::m_buffer |
|
protected |
◆ m_dataBuffer
The data buffer We use member copy semantics because m_dataBuffer points into m_buffer, which is owned by this object
Definition at line 283 of file DpContainer.hpp.
◆ m_dataSize
◆ m_dpState
◆ m_id
The container id This is a system-global id (component-local id + component base id)
Definition at line 260 of file DpContainer.hpp.
◆ m_priority
◆ m_procTypes
◆ m_timeTag
Time Fw::DpContainer::m_timeTag |
|
protected |
◆ m_userData
◆ MIN_PACKET_SIZE
The minimum packet size Reserve space for the header, the header hash, and the data hash This is also the number of non-data bytes in the packet
Definition at line 58 of file DpContainer.hpp.
The documentation for this class was generated from the following files: