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

Parser to read the type code of a tcp sequence. More...

#include <ParseFieldSetsData.h>

Public Member Functions

 ParseFieldSetsData ()
 Constructor of the parser. More...
 
bool parseTCPSequence (const datastructure::PacketBuffer &buffer, datastructure::FieldSets &field_sets) const
 Parses a tcp sequence to read the field sets of the sensor. More...
 

Private Member Functions

uint32_t readArrayLength (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::vector< std::string > readFieldName (std::vector< uint8_t >::const_iterator data_ptr, uint32_t array_length) const
 
std::vector< bool > readIsDefined (std::vector< uint8_t >::const_iterator data_ptr, uint32_t array_length) 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
 
std::vector< uint32_t > readNameLength (std::vector< uint8_t >::const_iterator data_ptr, uint32_t array_length) const
 
uint8_t readReleaseNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 
std::string readVersionIndicator (std::vector< uint8_t >::const_iterator data_ptr) const
 

Detailed Description

Parser to read the type code of a tcp sequence.

Definition at line 52 of file ParseFieldSetsData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseFieldSetsData::ParseFieldSetsData ( )

Constructor of the parser.

Definition at line 42 of file ParseFieldSetsData.cpp.

Member Function Documentation

bool sick::data_processing::ParseFieldSetsData::parseTCPSequence ( const datastructure::PacketBuffer buffer,
datastructure::FieldSets field_sets 
) const

Parses a tcp sequence to read the field sets of the sensor.

Parameters
bufferThe incoming tcp sequence.
field_setsReference to the field sets, which will be written while parsing.
Returns
If parsing was successful.

Definition at line 45 of file ParseFieldSetsData.cpp.

uint32_t sick::data_processing::ParseFieldSetsData::readArrayLength ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 85 of file ParseFieldSetsData.cpp.

std::vector< std::string > sick::data_processing::ParseFieldSetsData::readFieldName ( std::vector< uint8_t >::const_iterator  data_ptr,
uint32_t  array_length 
) const
private

Definition at line 92 of file ParseFieldSetsData.cpp.

std::vector< bool > sick::data_processing::ParseFieldSetsData::readIsDefined ( std::vector< uint8_t >::const_iterator  data_ptr,
uint32_t  array_length 
) const
private

Definition at line 120 of file ParseFieldSetsData.cpp.

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

Definition at line 70 of file ParseFieldSetsData.cpp.

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

Definition at line 75 of file ParseFieldSetsData.cpp.

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

Definition at line 110 of file ParseFieldSetsData.cpp.

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

Definition at line 80 of file ParseFieldSetsData.cpp.

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

Definition at line 63 of file ParseFieldSetsData.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