Parser to read the field header for protective and warning fields. More...
#include <ParseFieldHeaderData.h>
Public Member Functions | |
| ParseFieldHeaderData () | |
| Constructor of the parser. | |
| bool | parseTCPSequence (const datastructure::PacketBuffer &buffer, datastructure::FieldData &field_data) const |
| Parses a tcp sequence to read the header for a warning or protective field. | |
Private Member Functions | |
| bool | isValid (const uint8_t *&data_ptr) const |
| uint8_t | readFieldType (const uint8_t *&data_ptr) const |
| uint16_t | readSetIndex (const uint8_t *&data_ptr) const |
| void | setFieldType (const uint8_t *&data_ptr, datastructure::FieldData &field_data) const |
Private Attributes | |
| std::shared_ptr < sick::data_processing::ReadWriteHelper > | m_reader_ptr |
Parser to read the field header for protective and warning fields.
Definition at line 52 of file ParseFieldHeaderData.h.
Constructor of the parser.
Definition at line 42 of file ParseFieldHeaderData.cpp.
| bool sick::data_processing::ParseFieldHeaderData::isValid | ( | const uint8_t *& | data_ptr | ) | const [private] |
Definition at line 64 of file ParseFieldHeaderData.cpp.
| bool sick::data_processing::ParseFieldHeaderData::parseTCPSequence | ( | const datastructure::PacketBuffer & | buffer, |
| datastructure::FieldData & | field_data | ||
| ) | const |
Parses a tcp sequence to read the header for a warning or protective field.
| buffer | The incoming tcp sequence. |
| field_data | Reference to the field data where the information will be set. |
Definition at line 48 of file ParseFieldHeaderData.cpp.
| uint8_t sick::data_processing::ParseFieldHeaderData::readFieldType | ( | const uint8_t *& | data_ptr | ) | const [private] |
Definition at line 93 of file ParseFieldHeaderData.cpp.
| uint16_t sick::data_processing::ParseFieldHeaderData::readSetIndex | ( | const uint8_t *& | data_ptr | ) | const [private] |
Definition at line 98 of file ParseFieldHeaderData.cpp.
| void sick::data_processing::ParseFieldHeaderData::setFieldType | ( | const uint8_t *& | data_ptr, |
| datastructure::FieldData & | field_data | ||
| ) | const [private] |
Definition at line 76 of file ParseFieldHeaderData.cpp.
std::shared_ptr<sick::data_processing::ReadWriteHelper> sick::data_processing::ParseFieldHeaderData::m_reader_ptr [private] |
Definition at line 72 of file ParseFieldHeaderData.h.