Public Member Functions | Private Member Functions | Private Attributes
sick::data_processing::ParseFieldHeaderData Class Reference

Parser to read the field header for protective and warning fields. More...

#include <ParseFieldHeaderData.h>

List of all members.

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

Detailed Description

Parser to read the field header for protective and warning fields.

Definition at line 52 of file ParseFieldHeaderData.h.


Constructor & Destructor Documentation

Constructor of the parser.

Definition at line 42 of file ParseFieldHeaderData.cpp.


Member Function Documentation

bool sick::data_processing::ParseFieldHeaderData::isValid ( const uint8_t *&  data_ptr) const [private]

Definition at line 64 of file ParseFieldHeaderData.cpp.

Parses a tcp sequence to read the header for a warning or protective field.

Parameters:
bufferThe incoming tcp sequence.
field_dataReference to the field data where the information will be set.
Returns:
If parsing was successful.

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.


Member Data Documentation

Definition at line 72 of file ParseFieldHeaderData.h.


The documentation for this class was generated from the following files:


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:37