Parser to read monitoring case data. More...
#include <ParseMonitoringCaseData.h>
Public Member Functions | |
ParseMonitoringCaseData () | |
Constructor of the parser. | |
bool | parseTCPSequence (const datastructure::PacketBuffer &buffer, datastructure::MonitoringCaseData &monitoring_case_data) const |
Parses a tcp sequence and return the monitoring case data. | |
Private Member Functions | |
bool | isValid (const uint8_t *&data_ptr) const |
uint16_t | readFieldIndex (const uint8_t *&data_ptr, const uint8_t index) const |
bool | readFieldValid (const uint8_t *&data_ptr, const uint8_t index) const |
uint16_t | readMonitoringCaseNumber (const uint8_t *&data_ptr) const |
Private Attributes | |
std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_reader_ptr |
Parser to read monitoring case data.
Definition at line 54 of file ParseMonitoringCaseData.h.
Constructor of the parser.
Definition at line 42 of file ParseMonitoringCaseData.cpp.
bool sick::data_processing::ParseMonitoringCaseData::isValid | ( | const uint8_t *& | data_ptr | ) | const [private] |
Definition at line 72 of file ParseMonitoringCaseData.cpp.
bool sick::data_processing::ParseMonitoringCaseData::parseTCPSequence | ( | const datastructure::PacketBuffer & | buffer, |
datastructure::MonitoringCaseData & | monitoring_case_data | ||
) | const |
Parses a tcp sequence and return the monitoring case data.
buffer | The incoming tcp sequence. |
monitoring_case_data | Reference to the monitoring case data. |
Definition at line 48 of file ParseMonitoringCaseData.cpp.
uint16_t sick::data_processing::ParseMonitoringCaseData::readFieldIndex | ( | const uint8_t *& | data_ptr, |
const uint8_t | index | ||
) | const [private] |
Definition at line 88 of file ParseMonitoringCaseData.cpp.
bool sick::data_processing::ParseMonitoringCaseData::readFieldValid | ( | const uint8_t *& | data_ptr, |
const uint8_t | index | ||
) | const [private] |
Definition at line 94 of file ParseMonitoringCaseData.cpp.
uint16_t sick::data_processing::ParseMonitoringCaseData::readMonitoringCaseNumber | ( | const uint8_t *& | data_ptr | ) | const [private] |
Definition at line 83 of file ParseMonitoringCaseData.cpp.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::data_processing::ParseMonitoringCaseData::m_reader_ptr [private] |
Definition at line 74 of file ParseMonitoringCaseData.h.