ParseDataHeader.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_PARSEDATAHEADER_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEDATAHEADER_H
37 
38 
42 
44 
45 namespace sick {
46 namespace data_processing {
47 
55 {
56 public:
61 
71  datastructure::Data& data) const;
72 
73 private:
74  void setVersionIndicatorInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
75  datastructure::DataHeader& data_header) const;
76  void setMajorVersionInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
77  datastructure::DataHeader& data_header) const;
78  void setMinorVersionInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
79  datastructure::DataHeader& data_header) const;
80  void setVersionReleaseInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
81  datastructure::DataHeader& data_header) const;
82  void setSerialNumberOfDeviceInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
83  datastructure::DataHeader& data_header) const;
84  void setSerialNumberOfSystemPlugInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
85  datastructure::DataHeader& data_header) const;
86  void setChannelNumberInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
87  datastructure::DataHeader& data_header) const;
88  void setSequenceNumberInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
89  datastructure::DataHeader& data_header) const;
90  void setScanNumberInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
91  datastructure::DataHeader& data_header) const;
92  void setTimestampDateInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
93  datastructure::DataHeader& data_header) const;
94  void setTimestampTimeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
95  datastructure::DataHeader& data_header) const;
96  void setGeneralSystemStateBlockOffsetInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
97  datastructure::DataHeader& data_header) const;
98  void setGeneralSystemStateBlockSizeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
99  datastructure::DataHeader& data_header) const;
100  void setDerivedValuesBlockOffsetInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
101  datastructure::DataHeader& data_header) const;
102  void setDerivedValuesBlockSizeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
103  datastructure::DataHeader& data_header) const;
104  void setMeasurementDataBlockOffsetInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
105  datastructure::DataHeader& data_header) const;
106  void setMeasurementDataBlockSizeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
107  datastructure::DataHeader& data_header) const;
108  void setIntrusionDataBlockOffsetInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
109  datastructure::DataHeader& data_header) const;
110  void setIntrusionDataBlockSizeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
111  datastructure::DataHeader& data_header) const;
112  void setApplicationDataBlockOffsetInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
113  datastructure::DataHeader& data_header) const;
114  void setApplicationDataBlockSizeInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
115  datastructure::DataHeader& data_header) const;
116  void setDataInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
117  datastructure::DataHeader& data_header) const;
118  void setVersionInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
119  datastructure::DataHeader& data_header) const;
120  void setScanHeaderInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
121  datastructure::DataHeader& data_header) const;
122  void setDataBlocksInDataHeader(std::vector<uint8_t>::const_iterator data_ptr,
123  datastructure::DataHeader& data_header) const;
124 };
125 
126 } // namespace data_processing
127 } // namespace sick
128 
129 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEDATAHEADER_H
ParseDataHeader()
Constructor of the parser.
void setMeasurementDataBlockSizeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setGeneralSystemStateBlockSizeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setDataInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
void setDerivedValuesBlockSizeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setSequenceNumberInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setApplicationDataBlockSizeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
datastructure::DataHeader parseUDPSequence(const datastructure::PacketBuffer &buffer, datastructure::Data &data) const
Parses the data header from a udp sequence.
data
void setChannelNumberInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setMeasurementDataBlockOffsetInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
The data class containing all data blocks of a measurement.
Definition: Data.h:55
void setIntrusionDataBlockOffsetInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setMajorVersionInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setVersionInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setTimestampDateInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setSerialNumberOfDeviceInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setScanNumberInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setApplicationDataBlockOffsetInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setDerivedValuesBlockOffsetInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setVersionIndicatorInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setIntrusionDataBlockSizeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setSerialNumberOfSystemPlugInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setDataBlocksInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setScanHeaderInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setTimestampTimeInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
Contains the content of the data header of a udp data packet.
Definition: DataHeader.h:46
void setVersionReleaseInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
Parser for the data header.
void setGeneralSystemStateBlockOffsetInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const
void setMinorVersionInDataHeader(std::vector< uint8_t >::const_iterator data_ptr, datastructure::DataHeader &data_header) const


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