|
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< std::uint8_t > &data) | |
| Constructs a DataOnlyHeader object with all fields explicitly set. | |
| ResultBool | deserialize (const std::vector< std::uint8_t > &data) override |
| takes a buffer if data (vector std::uint8) and creates the header | |
| std::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< std::uint8_t > | serialize () const override |
| Retrieves the serialized representation of the header. | |
| void | update (DataField *dataField) override |
| Defines how the packet secondary header is updated using the data field as reference. | |
| ResultBool | loadFromConfig (const Config &config) override |
Public Member Functions inherited from CCSDS::SecondaryHeaderAbstract | |
| virtual | ~SecondaryHeaderAbstract ()=default |
| void | setVariableLength (const bool bEnable) |
Private Attributes | |
| std::vector< std::uint8_t > | m_data |
| std::uint16_t | m_dataLength = 0 |
| const std::string | m_type = "DataOnlyHeader" |
Additional Inherited Members | |
Public Attributes inherited from CCSDS::SecondaryHeaderAbstract | |
| bool | variableLength {false} |
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 79 of file CCSDSSecondaryHeaderAbstract.h.
|
default |
|
inlineexplicit |
Constructs a DataOnlyHeader object with all fields explicitly set.
Definition at line 86 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
takes a buffer if data (vector std::uint8) and creates the header
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 89 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Gets the size of the header in bytes.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 91 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Retrieves the name of the packet.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 92 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 97 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Retrieves the serialized representation of the header.
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 94 of file CCSDSSecondaryHeaderAbstract.h.
|
inlineoverridevirtual |
Defines how the packet secondary header is updated using the data field as reference.
This method is called every time a data get is performed from the packet, that is if update is enabled and method successfully registered.
| dataField |
Implements CCSDS::SecondaryHeaderAbstract.
Definition at line 95 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 101 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 102 of file CCSDSSecondaryHeaderAbstract.h.
|
private |
Definition at line 103 of file CCSDSSecondaryHeaderAbstract.h.