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 void | setDataLength (uint16_t dataLength)=0 |
Sets the length of the data associated with the packet. | |
virtual ResultBool | deserialize (const std::vector< uint8_t > &data)=0 |
takes a buffer if data (vector uint8) and creates the header | |
virtual uint16_t | getDataLength () const =0 |
Gets the length of the data associated with the packet if applicable. | |
virtual uint16_t | getSize () const =0 |
Gets the size of the header in bytes. | |
virtual std::vector< uint8_t > | serialize () const =0 |
Retrieves the serialized representation of the header. | |
virtual std::string | getType () const =0 |
Retrieves the name of the packet. | |
Abstract base class for a (Packet Utilization Standard) header.
Defines the common interface for all header types.
Definition at line 14 of file CCSDSSecondaryHeaderAbstract.h.
|
virtualdefault |
|
pure virtual |
takes a buffer if data (vector uint8) and creates the header
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
pure virtual |
Gets the length of the data associated with the packet if applicable.
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 |
Retrieves the serialized representation of the header.
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.
|
pure virtual |
Sets the length of the data associated with the packet.
dataLength | Length of the data in bytes. |
Implemented in CCSDS::BufferHeader, PusA, PusB, and PusC.