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  std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
73 
74  bool isValid(const uint8_t*& data_ptr) const;
75  void setFieldType(const uint8_t*& data_ptr, datastructure::FieldData& field_data) const;
76  uint8_t readFieldType(const uint8_t*& data_ptr) const;
77  uint16_t readSetIndex(const uint8_t*& data_ptr) const;
78 };
79 
80 } // namespace data_processing
81 } // namespace sick
82 
83 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H
bool isValid(const uint8_t *&data_ptr) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
Field data for warning and protective fields.
Definition: FieldData.h:48
uint8_t readFieldType(const uint8_t *&data_ptr) const
Parser to read the field header for protective and warning fields.
uint16_t readSetIndex(const uint8_t *&data_ptr) const
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
void setFieldType(const uint8_t *&data_ptr, datastructure::FieldData &field_data) 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.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08