ParseMonitoringCaseData.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMONITORINGCASEDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEMONITORINGCASEDATA_H
37 
41 
43 
44 #include <vector>
45 
46 namespace sick {
47 
48 namespace data_processing {
49 
50 
55 {
56 public:
61 
71  datastructure::MonitoringCaseData& monitoring_case_data) const;
72 
73 private:
74  bool isValid(std::vector<uint8_t>::const_iterator data_ptr) const;
75  uint16_t readMonitoringCaseNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
76  uint16_t readFieldIndex(std::vector<uint8_t>::const_iterator data_ptr,
77  const uint8_t& index) const;
78  bool readFieldValid(std::vector<uint8_t>::const_iterator data_ptr, const uint8_t& index) const;
79 };
80 
81 } // namespace data_processing
82 } // namespace sick
83 
84 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDGEOMETRYDATA_H
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, datastructure::MonitoringCaseData &monitoring_case_data) const
Parses a tcp sequence and return the monitoring case data.
bool isValid(std::vector< uint8_t >::const_iterator data_ptr) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
uint16_t readMonitoringCaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
Stores the data for the different monitoring cases.
bool readFieldValid(std::vector< uint8_t >::const_iterator data_ptr, const uint8_t &index) const
uint16_t readFieldIndex(std::vector< uint8_t >::const_iterator data_ptr, const uint8_t &index) const


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