Public Member Functions | Private Member Functions | List of all members
sick::data_processing::ParseFieldHeaderData Class Reference

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

#include <ParseFieldHeaderData.h>

Public Member Functions

 ParseFieldHeaderData ()
 Constructor of the parser. More...
 
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. More...
 

Private Member Functions

bool isValid (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readEvalMethod (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::string readFieldName (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readFieldType (std::vector< uint8_t >::const_iterator data_ptr) const
 
bool readIsDefined (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readMajorNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readMinorNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint16_t readMultiSampling (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint32_t readNameLength (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint16_t readObjectResolution (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint8_t readReleaseNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint16_t readSetIndex (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::string readVersionIndicator (std::vector< uint8_t >::const_iterator data_ptr) const
 
void setFieldType (std::vector< uint8_t >::const_iterator data_ptr, datastructure::FieldData &field_data) const
 

Detailed Description

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

Definition at line 52 of file ParseFieldHeaderData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseFieldHeaderData::ParseFieldHeaderData ( )

Constructor of the parser.

Definition at line 42 of file ParseFieldHeaderData.cpp.

Member Function Documentation

bool sick::data_processing::ParseFieldHeaderData::isValid ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 73 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.

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 45 of file ParseFieldHeaderData.cpp.

uint8_t sick::data_processing::ParseFieldHeaderData::readEvalMethod ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 130 of file ParseFieldHeaderData.cpp.

std::string sick::data_processing::ParseFieldHeaderData::readFieldName ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 160 of file ParseFieldHeaderData.cpp.

uint8_t sick::data_processing::ParseFieldHeaderData::readFieldType ( std::vector< uint8_t >::const_iterator  data_ptr) const
private
bool sick::data_processing::ParseFieldHeaderData::readIsDefined ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 124 of file ParseFieldHeaderData.cpp.

uint8_t sick::data_processing::ParseFieldHeaderData::readMajorNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 109 of file ParseFieldHeaderData.cpp.

uint8_t sick::data_processing::ParseFieldHeaderData::readMinorNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 114 of file ParseFieldHeaderData.cpp.

uint16_t sick::data_processing::ParseFieldHeaderData::readMultiSampling ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 137 of file ParseFieldHeaderData.cpp.

uint32_t sick::data_processing::ParseFieldHeaderData::readNameLength ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 154 of file ParseFieldHeaderData.cpp.

uint16_t sick::data_processing::ParseFieldHeaderData::readObjectResolution ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 143 of file ParseFieldHeaderData.cpp.

uint8_t sick::data_processing::ParseFieldHeaderData::readReleaseNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 119 of file ParseFieldHeaderData.cpp.

uint16_t sick::data_processing::ParseFieldHeaderData::readSetIndex ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 148 of file ParseFieldHeaderData.cpp.

std::string sick::data_processing::ParseFieldHeaderData::readVersionIndicator ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 102 of file ParseFieldHeaderData.cpp.

void sick::data_processing::ParseFieldHeaderData::setFieldType ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::FieldData field_data 
) const
private

Definition at line 85 of file ParseFieldHeaderData.cpp.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:42