Parser to read the intrusion data from a udp sequence. More...
#include <ParseIntrusionData.h>
Public Member Functions | |
uint16_t | getNumScanPoints () const |
ParseIntrusionData () | |
Constructor of the parser. | |
datastructure::IntrusionData | parseUDPSequence (const datastructure::PacketBuffer &buffer, datastructure::Data &data) |
Parse a udp sequence to read the intrusion data if enabled. | |
void | setNumScanPoints (const uint16_t num_scan_points) |
Private Member Functions | |
bool | checkIfDataContainsNeededParsedBlocks (const datastructure::Data &data) const |
bool | checkIfIntrusionDataIsPublished (const datastructure::Data &data) const |
bool | checkIfPreconditionsAreMet (const datastructure::Data &data) const |
void | setDataInIntrusionData (const uint8_t *&data_ptr, datastructure::IntrusionData &intrusion_data) const |
void | setDataInIntrusionDatums (const uint8_t *&data_ptr, std::vector< sick::datastructure::IntrusionDatum > &intrusion_datums) const |
uint16_t | setFlagsInIntrusionDatum (const uint16_t offset, const uint8_t *&data_ptr, sick::datastructure::IntrusionDatum &datum) const |
uint16_t | setSizeInIntrusionDatum (const uint16_t offset, const uint8_t *&data_ptr, sick::datastructure::IntrusionDatum &datum) const |
Private Attributes | |
uint16_t | m_num_scan_points |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_reader_ptr |
Parser to read the intrusion data from a udp sequence.
Definition at line 52 of file ParseIntrusionData.h.
Constructor of the parser.
Definition at line 40 of file ParseIntrusionData.cpp.
bool sick::data_processing::ParseIntrusionData::checkIfDataContainsNeededParsedBlocks | ( | const datastructure::Data & | data | ) | const [private] |
Definition at line 86 of file ParseIntrusionData.cpp.
bool sick::data_processing::ParseIntrusionData::checkIfIntrusionDataIsPublished | ( | const datastructure::Data & | data | ) | const [private] |
Definition at line 76 of file ParseIntrusionData.cpp.
bool sick::data_processing::ParseIntrusionData::checkIfPreconditionsAreMet | ( | const datastructure::Data & | data | ) | const [private] |
Definition at line 63 of file ParseIntrusionData.cpp.
uint16_t sick::data_processing::ParseIntrusionData::getNumScanPoints | ( | ) | const |
Definition at line 100 of file ParseIntrusionData.cpp.
datastructure::IntrusionData sick::data_processing::ParseIntrusionData::parseUDPSequence | ( | const datastructure::PacketBuffer & | buffer, |
datastructure::Data & | data | ||
) |
Parse a udp sequence to read the intrusion data if enabled.
buffer | The incoming sequence. |
data | The already parsed data to check if intrusion data is enabled. |
Definition at line 46 of file ParseIntrusionData.cpp.
void sick::data_processing::ParseIntrusionData::setDataInIntrusionData | ( | const uint8_t *& | data_ptr, |
datastructure::IntrusionData & | intrusion_data | ||
) | const [private] |
Definition at line 110 of file ParseIntrusionData.cpp.
void sick::data_processing::ParseIntrusionData::setDataInIntrusionDatums | ( | const uint8_t *& | data_ptr, |
std::vector< sick::datastructure::IntrusionDatum > & | intrusion_datums | ||
) | const [private] |
Definition at line 118 of file ParseIntrusionData.cpp.
uint16_t sick::data_processing::ParseIntrusionData::setFlagsInIntrusionDatum | ( | const uint16_t | offset, |
const uint8_t *& | data_ptr, | ||
sick::datastructure::IntrusionDatum & | datum | ||
) | const [private] |
Definition at line 144 of file ParseIntrusionData.cpp.
void sick::data_processing::ParseIntrusionData::setNumScanPoints | ( | const uint16_t | num_scan_points | ) |
Definition at line 105 of file ParseIntrusionData.cpp.
uint16_t sick::data_processing::ParseIntrusionData::setSizeInIntrusionDatum | ( | const uint16_t | offset, |
const uint8_t *& | data_ptr, | ||
sick::datastructure::IntrusionDatum & | datum | ||
) | const [private] |
Definition at line 136 of file ParseIntrusionData.cpp.
uint16_t sick::data_processing::ParseIntrusionData::m_num_scan_points [private] |
Definition at line 74 of file ParseIntrusionData.h.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::data_processing::ParseIntrusionData::m_reader_ptr [private] |
Definition at line 76 of file ParseIntrusionData.h.