A data product Container.
More...
#include <Fw/Dp/DpContainer.hpp>
A data product Container.
Definition at line 20 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.
◆ deserializeHeader()
Deserialize the header from the packet buffer Buffer must be valid and large enough to hold a DP container packet
- Returns
- The serialize status
Definition at line 38 of file DpContainer.cpp.
◆ getBuffer()
Get the packet buffer
- Returns
- The buffer
Definition at line 87 of file DpContainer.hpp.
◆ getDataHashOffset()
FwSizeType Fw::DpContainer::getDataHashOffset |
( |
| ) |
const |
|
inline |
◆ getDataSize()
Get the data size
- Returns
- The data size
Definition at line 83 of file DpContainer.hpp.
◆ getId()
◆ getPacketSize()
FwSizeType Fw::DpContainer::getPacketSize |
( |
| ) |
const |
|
inline |
Get the packet size corresponding to the data size.
Definition at line 90 of file DpContainer.hpp.
◆ getPacketSizeForDataSize()
Get the packet size for a given data size.
- Parameters
-
Definition at line 171 of file DpContainer.hpp.
◆ getPriority()
◆ getProcTypes()
Get the processing types
- Returns
- The processing types
Definition at line 102 of file DpContainer.hpp.
◆ getTimeTag()
Fw::Time Fw::DpContainer::getTimeTag |
( |
| ) |
const |
|
inline |
◆ serializeHeader()
void Fw::DpContainer::serializeHeader |
( |
| ) |
|
Serialize the header into the packet buffer and update the header hash Buffer must be valid and large enough to hold a DP container packet
Definition at line 92 of file DpContainer.cpp.
◆ setBuffer()
void Fw::DpContainer::setBuffer |
( |
const Buffer & | buffer | ) |
|
◆ 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 138 of file DpContainer.hpp.
◆ setId()
◆ setPriority()
◆ setProcTypes()
Set the processing types bit mask.
- Parameters
-
procTypes | The processing types |
Definition at line 132 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
◆ m_dataSize
◆ m_dpState
◆ m_id
The container id This is a system-global id (component-local id + component base id)
Definition at line 199 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 57 of file DpContainer.hpp.
The documentation for this class was generated from the following files: