ParseFieldHeaderData.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_PARSEFIELDHEADERDATA_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H
37 
41 
43 
44 namespace sick {
45 
46 namespace data_processing {
47 
48 
53 {
54 public:
59 
69  datastructure::FieldData& field_data) const;
70 
71 private:
72  bool isValid(std::vector<uint8_t>::const_iterator data_ptr) const;
73  void setFieldType(std::vector<uint8_t>::const_iterator data_ptr,
74  datastructure::FieldData& field_data) const;
75  uint8_t readFieldType(std::vector<uint8_t>::const_iterator data_ptr) const;
76  std::string readVersionIndicator(std::vector<uint8_t>::const_iterator data_ptr) const;
77  uint8_t readMajorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
78  uint8_t readMinorNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
79  uint8_t readReleaseNumber(std::vector<uint8_t>::const_iterator data_ptr) const;
80  bool readIsDefined(std::vector<uint8_t>::const_iterator data_ptr) const;
81  uint8_t readEvalMethod(std::vector<uint8_t>::const_iterator data_ptr) const;
82  uint16_t readMultiSampling(std::vector<uint8_t>::const_iterator data_ptr) const;
83  uint16_t readObjectResolution(std::vector<uint8_t>::const_iterator data_ptr) const;
84  uint16_t readSetIndex(std::vector<uint8_t>::const_iterator data_ptr) const;
85  uint32_t readNameLength(std::vector<uint8_t>::const_iterator data_ptr) const;
86  std::string readFieldName(std::vector<uint8_t>::const_iterator data_ptr) const;
87 };
88 
89 } // namespace data_processing
90 } // namespace sick
91 
92 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H
void setFieldType(std::vector< uint8_t >::const_iterator data_ptr, datastructure::FieldData &field_data) const
uint8_t readMajorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readSetIndex(std::vector< uint8_t >::const_iterator data_ptr) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
bool isValid(std::vector< uint8_t >::const_iterator data_ptr) const
std::string readVersionIndicator(std::vector< uint8_t >::const_iterator data_ptr) const
Field data for warning and protective fields.
Definition: FieldData.h:48
std::string readFieldName(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readMinorNumber(std::vector< uint8_t >::const_iterator data_ptr) const
Parser to read the field header for protective and warning fields.
uint8_t readFieldType(std::vector< uint8_t >::const_iterator data_ptr) const
uint8_t readReleaseNumber(std::vector< uint8_t >::const_iterator data_ptr) const
uint32_t readNameLength(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readMultiSampling(std::vector< uint8_t >::const_iterator data_ptr) const
uint16_t readObjectResolution(std::vector< uint8_t >::const_iterator data_ptr) const
bool readIsDefined(std::vector< uint8_t >::const_iterator data_ptr) const
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.
uint8_t readEvalMethod(std::vector< uint8_t >::const_iterator data_ptr) const


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