|
CCSDSPack
C++ Library for CCSDS Space Packet manipulation. i.e. generation, extraction, analisys and more
|
Abstract base class for a (Packet Utilization Standard) header. More...
#include <CCSDSSecondaryHeaderAbstract.h>
Public Member Functions | |
| virtual | ~SecondaryHeaderAbstract ()=default |
| virtual ResultBool | deserialize (const std::vector< std::uint8_t > &data)=0 |
| takes a buffer if data (vector std::uint8) and creates the header | |
| virtual void | update (DataField *dataField)=0 |
| Defines how the packet secondary header is updated using the data field as reference. | |
| virtual std::uint16_t | getSize () const =0 |
| Gets the size of the header in bytes. | |
| virtual std::vector< std::uint8_t > | serialize () const =0 |
| Retrieves the serialized representation of the header. | |
| virtual std::string | getType () const =0 |
| Retrieves the name of the packet. | |
| virtual ResultBool | loadFromConfig (const Config &config)=0 |
| void | setVariableLength (const bool bEnable) |
Public Attributes | |
| bool | variableLength {false} |
Abstract base class for a (Packet Utilization Standard) header.
Defines the common interface for all header types.
Definition at line 20 of file CCSDSSecondaryHeaderAbstract.h.
|
virtualdefault |
|
pure virtual |
takes a buffer if data (vector std::uint8) and creates the header
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
pure virtual |
Gets the size of the header in bytes.
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
pure virtual |
Retrieves the name of the packet.
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
pure virtual |
Implemented in CCSDS::BufferHeader.
|
pure virtual |
Retrieves the serialized representation of the header.
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
inline |
Definition at line 61 of file CCSDSSecondaryHeaderAbstract.h.
|
pure virtual |
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 |
Implemented in PusA, PusB, PusC, and CCSDS::BufferHeader.
| bool CCSDS::SecondaryHeaderAbstract::variableLength {false} |
Definition at line 62 of file CCSDSSecondaryHeaderAbstract.h.