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

Parser to read monitoring case data. More...

#include <ParseMonitoringCaseData.h>

Public Member Functions

 ParseMonitoringCaseData ()
 Constructor of the parser. More...
 
bool parseTCPSequence (const datastructure::PacketBuffer &buffer, datastructure::MonitoringCaseData &monitoring_case_data) const
 Parses a tcp sequence and return the monitoring case data. More...
 

Private Member Functions

bool isValid (std::vector< uint8_t >::const_iterator data_ptr) const
 
uint16_t readFieldIndex (std::vector< uint8_t >::const_iterator data_ptr, const uint8_t &index) const
 
bool readFieldValid (std::vector< uint8_t >::const_iterator data_ptr, const uint8_t &index) const
 
uint16_t readMonitoringCaseNumber (std::vector< uint8_t >::const_iterator data_ptr) const
 

Detailed Description

Parser to read monitoring case data.

Definition at line 54 of file ParseMonitoringCaseData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseMonitoringCaseData::ParseMonitoringCaseData ( )

Constructor of the parser.

Definition at line 42 of file ParseMonitoringCaseData.cpp.

Member Function Documentation

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

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

Parameters
bufferThe incoming tcp sequence.
monitoring_case_dataReference to the monitoring case data.
Returns
If parsing the sequence was successful.

Definition at line 45 of file ParseMonitoringCaseData.cpp.

uint16_t sick::data_processing::ParseMonitoringCaseData::readFieldIndex ( std::vector< uint8_t >::const_iterator  data_ptr,
const uint8_t &  index 
) const
private

Definition at line 88 of file ParseMonitoringCaseData.cpp.

bool sick::data_processing::ParseMonitoringCaseData::readFieldValid ( std::vector< uint8_t >::const_iterator  data_ptr,
const uint8_t &  index 
) const
private

Definition at line 94 of file ParseMonitoringCaseData.cpp.

uint16_t sick::data_processing::ParseMonitoringCaseData::readMonitoringCaseNumber ( std::vector< uint8_t >::const_iterator  data_ptr) const
private

Definition at line 82 of file ParseMonitoringCaseData.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