CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Represents a fixed secondary header used as a data buffer. More...
#include <CCSDSSecondaryHeaderAbstract.h>
Public Member Functions | |
BufferHeader ()=default | |
BufferHeader (const std::vector< uint8_t > &data) | |
Constructs a DataOnlyHeader object with all fields explicitly set. | |
void | setDataLength (const uint16_t dataLength) override |
Sets the length of the data associated with the packet. | |
ResultBool | deserialize (const std::vector< uint8_t > &data) override |
takes a buffer if data (vector uint8) and creates the header | |
uint16_t | getDataLength () const override |
Gets the length of the data associated with the packet if applicable. | |
uint16_t | getSize () const override |
Gets the size of the header in bytes. | |
std::string | getType () const override |
Retrieves the name of the packet. | |
std::vector< uint8_t > | serialize () const override |
Retrieves the serialized representation of the header. | |
![]() | |
virtual | ~SecondaryHeaderAbstract ()=default |
Private Attributes | |
std::vector< uint8_t > | m_data |
uint16_t | m_dataLength = 0 |
const std::string | m_type = "DataOnlyHeader" |
Represents a fixed secondary header used as a data buffer.
This class holds the raw data for the secondary header. It provides methods to serialize and deserialize the header data as a vector of bytes. The DataOnlyHeader
is not associated with any specific PUS type.
Field Summary:
getSize
method returns the size of the data buffer, while getDataLength
returns the length of the data as set. The m_dataLength
field is not tied to any other data structure or context. Definition at line 70 of file CCSDSSecondaryHeaderAbstract.h.
|
default |
|
inlineexplicit |
Constructs a DataOnlyHeader object with all fields explicitly set.
Definition at line 77 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
takes a buffer if data (vector uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 82 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Gets the length of the data associated with the packet if applicable.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 84 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 85 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 86 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 88 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Sets the length of the data associated with the packet.
dataLength | Length of the data in bytes. |
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 80 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 91 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 92 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 93 of file CCSDSSecondaryHeaderAbstract.h.