3#ifndef CCSDS_VALIDATOR_H
4#define CCSDS_VALIDATOR_H
41 void configure(
bool validatePacketCoherence,
bool validateSequenceCount,
bool validateAgainstTemplate);
Represents a CCSDS (Consultative Committee for Space Data Systems) packet.
Handles validation of CCSDS packets.
void clear()
Clears the validator, resets counter.
bool m_validatePacketCoherence
Whether to validate packet length and CRC (default is true).
bool m_validateAgainstTemplate
Whether to validate against the template packet (default is false).
uint16_t m_sequenceCounter
Counter for segmented Packets.
std::vector< bool > getReport() const
Returns a report of performed validation checks.
Validator(const Packet &templatePacket)
Constructs a Validator with a template packet.
Packet m_templatePacket
Template packet used for validation.
size_t m_reportSize
Expected size of the validation report.
void configure(bool validatePacketCoherence, bool validateSequenceCount, bool validateAgainstTemplate)
Configures validation options.
std::vector< bool > m_report
List of boolean results representing performed checks.
~Validator()=default
Default destructor.
Validator()=default
Default constructor.
bool m_validateSegmentedCount
Whether to validate the count of segmented packets.
void setTemplatePacket(const Packet &templatePacket)
Sets the template packet for validation.
bool validate(const Packet &packet)
Validates a given packet.
Contains definitions and classes for handling CCSDS headers.
Configuration structure for CRC16 calculation parameters.