DataHeader.cpp
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 
36 
37 namespace sick {
38 namespace datastructure {
39 
41  : m_is_empty(false)
42 {
43 }
44 
46 {
47  return m_version_indicator;
48 }
49 
50 void DataHeader::setVersionIndicator(const uint8_t& version_indicator)
51 {
52  m_version_indicator = version_indicator;
53 }
54 
56 {
58 }
59 
60 void DataHeader::setVersionMajorVersion(const uint8_t& version_major_version)
61 {
62  m_version_major_version = version_major_version;
63 }
64 
66 {
68 }
69 
70 void DataHeader::setVersionMinorVersion(const uint8_t& version_minor_version)
71 {
72  m_version_minor_version = version_minor_version;
73 }
74 
76 {
77  return m_version_release;
78 }
79 
80 void DataHeader::setVersionRelease(const uint8_t& version_release)
81 {
82  m_version_release = version_release;
83 }
84 
86 {
88 }
89 
90 void DataHeader::setSerialNumberOfDevice(const uint32_t& serial_number_of_device)
91 {
92  m_serial_number_of_device = serial_number_of_device;
93 }
94 
96 {
98 }
99 
100 void DataHeader::setSerialNumberOfSystemPlug(const uint32_t& serial_number_of_system_plug)
101 {
102  m_serial_number_of_system_plug = serial_number_of_system_plug;
103 }
104 
106 {
107  return m_channel_number;
108 }
109 
110 void DataHeader::setChannelNumber(const uint8_t& channel_number)
111 {
112  m_channel_number = channel_number;
113 }
114 
116 {
117  return m_sequence_number;
118 }
119 
120 void DataHeader::setSequenceNumber(const uint32_t& sequence_number)
121 {
122  m_sequence_number = sequence_number;
123 }
124 
126 {
127  return m_scan_number;
128 }
129 
130 void DataHeader::setScanNumber(const uint32_t& scan_number)
131 {
132  m_scan_number = scan_number;
133 }
134 
136 {
137  return m_timestamp_date;
138 }
139 
140 void DataHeader::setTimestampDate(const uint16_t& timestamp_date)
141 {
142  m_timestamp_date = timestamp_date;
143 }
144 
146 {
147  return m_timestamp_time;
148 }
149 
150 void DataHeader::setTimestampTime(const uint32_t& timestamp_time)
151 {
152  m_timestamp_time = timestamp_time;
153 }
154 
156 {
158 }
159 
160 void DataHeader::setGeneralSystemStateBlockOffset(const uint16_t& general_system_state_block_offset)
161 {
162  m_general_system_state_block_offset = general_system_state_block_offset;
163 }
164 
166 {
168 }
169 
170 void DataHeader::setGeneralSystemStateBlockSize(const uint16_t& general_system_state_block_size)
171 {
172  m_general_system_state_block_size = general_system_state_block_size;
173 }
174 
176 {
178 }
179 
180 void DataHeader::setDerivedValuesBlockOffset(const uint16_t& derived_values_block_offset)
181 {
182  m_derived_values_block_offset = derived_values_block_offset;
183 }
184 
186 {
188 }
189 
190 void DataHeader::setDerivedValuesBlockSize(const uint16_t& derived_values_block_size)
191 {
192  m_derived_values_block_size = derived_values_block_size;
193 }
194 
196 {
198 }
199 
200 void DataHeader::setMeasurementDataBlockOffset(const uint16_t& measurement_data_block_offset)
201 {
202  m_measurement_data_block_offset = measurement_data_block_offset;
203 }
204 
206 {
208 }
209 
210 void DataHeader::setMeasurementDataBlockSize(const uint16_t& measurement_data_block_size)
211 {
212  m_measurement_data_block_size = measurement_data_block_size;
213 }
214 
216 {
218 }
219 
220 void DataHeader::setIntrusionDataBlockOffset(const uint16_t& intrusion_data_block_offset)
221 {
222  m_intrusion_data_block_offset = intrusion_data_block_offset;
223 }
224 
226 {
228 }
229 
230 void DataHeader::setIntrusionDataBlockSize(const uint16_t& intrusion_data_block_size)
231 {
232  m_intrusion_data_block_size = intrusion_data_block_size;
233 }
234 
236 {
238 }
239 
240 void DataHeader::setApplicationDataBlockOffset(const uint16_t& application_data_block_offset)
241 {
242  m_application_data_block_offset = application_data_block_offset;
243 }
244 
246 {
248 }
249 
250 void DataHeader::setApplicationDataBlockSize(const uint16_t& application_data_block_size)
251 {
252  m_application_data_block_size = application_data_block_size;
253 }
254 
256 {
257  return m_is_empty;
258 }
259 
260 void DataHeader::setIsEmpty(bool is_empty)
261 {
262  m_is_empty = is_empty;
263 }
264 
265 } // namespace datastructure
266 } // namespace sick
uint16_t getIntrusionDataBlockOffset() const
Gets the intrusion data block offset.
Definition: DataHeader.cpp:215
uint8_t getVersionMajorVersion() const
Returns the major version number. Different numbers indicate incompatible implementation.
Definition: DataHeader.cpp:55
uint32_t getSerialNumberOfDevice() const
Gets the serial number of the device.
Definition: DataHeader.cpp:85
void setTimestampTime(const uint32_t &timestamp_time)
Sets the timestamp time.
Definition: DataHeader.cpp:150
void setMeasurementDataBlockOffset(const uint16_t &measurement_data_block_offset)
Sets the measurement data block offset.
Definition: DataHeader.cpp:200
void setChannelNumber(const uint8_t &channel_number)
Sets the number of channel the measurement data belongs to.
Definition: DataHeader.cpp:110
bool isEmpty() const
Checks if the data header block is empty.
Definition: DataHeader.cpp:255
uint16_t getApplicationDataBlockOffset() const
Gets the application io data block offset.
Definition: DataHeader.cpp:235
void setApplicationDataBlockSize(const uint16_t &application_data_block_size)
Sets the application io data block size.
Definition: DataHeader.cpp:250
uint16_t getTimestampDate() const
Gets the timestamp date.
Definition: DataHeader.cpp:135
void setSerialNumberOfDevice(const uint32_t &serial_number_of_device)
Sets the serial number of the device.
Definition: DataHeader.cpp:90
uint16_t getIntrusionDataBlockSize() const
Gets the intrusion data block size.
Definition: DataHeader.cpp:225
uint32_t getSerialNumberOfSystemPlug() const
Gets the serial number of the system plug.
Definition: DataHeader.cpp:95
uint16_t getMeasurementDataBlockSize() const
Gets the measurement data block size.
Definition: DataHeader.cpp:205
uint16_t getGeneralSystemStateBlockSize() const
Gets the general system state block size.
Definition: DataHeader.cpp:165
void setGeneralSystemStateBlockOffset(const uint16_t &general_system_state_block_offset)
Sets the general system state block offset.
Definition: DataHeader.cpp:160
void setIntrusionDataBlockSize(const uint16_t &intrusion_data_block_size)
Sets the intrusion data block size.
Definition: DataHeader.cpp:230
uint32_t getTimestampTime() const
Gets the timestamp time.
Definition: DataHeader.cpp:145
uint16_t getApplicationDataBlockSize() const
Gets the application io data block size.
Definition: DataHeader.cpp:245
void setSequenceNumber(const uint32_t &sequence_number)
Sets the sequence number of the measurement data.
Definition: DataHeader.cpp:120
uint16_t getGeneralSystemStateBlockOffset() const
Gets the general system state block offset.
Definition: DataHeader.cpp:155
uint8_t getVersionMinorVersion() const
Returns the minor version number. Different numbers indicate compatible implementation if the major v...
Definition: DataHeader.cpp:65
uint16_t m_general_system_state_block_offset
Definition: DataHeader.h:402
void setDerivedValuesBlockOffset(const uint16_t &derived_values_block_offset)
Sets the derived values block offset.
Definition: DataHeader.cpp:180
void setVersionRelease(const uint8_t &version_release)
Sets the release of the version.
Definition: DataHeader.cpp:80
void setVersionMajorVersion(const uint8_t &version_major_version)
Sets the major version number.
Definition: DataHeader.cpp:60
void setIsEmpty(bool is_empty)
Sets if the data header is empty.
Definition: DataHeader.cpp:260
uint32_t getScanNumber() const
Gets the scan number of the measurement data instance.
Definition: DataHeader.cpp:125
void setDerivedValuesBlockSize(const uint16_t &derived_values_block_size)
Sets the derived values block size.
Definition: DataHeader.cpp:190
void setScanNumber(const uint32_t &scan_number)
Sets the scan number of the measurement data.
Definition: DataHeader.cpp:130
void setSerialNumberOfSystemPlug(const uint32_t &serial_number_of_system_plug)
Sets the serial number of the system plug.
Definition: DataHeader.cpp:100
void setTimestampDate(const uint16_t &timestamp_date)
Sets the timestamp date.
Definition: DataHeader.cpp:140
void setIntrusionDataBlockOffset(const uint16_t &intrusion_data_block_offset)
Sets the intrusion data block offset.
Definition: DataHeader.cpp:220
uint8_t getChannelNumber() const
Gets the number of channel the measurement data belongs to.
Definition: DataHeader.cpp:105
uint16_t getMeasurementDataBlockOffset() const
Gets the measurement data block offset.
Definition: DataHeader.cpp:195
void setGeneralSystemStateBlockSize(const uint16_t &general_system_state_block_size)
Sets the general system state block size.
Definition: DataHeader.cpp:170
uint8_t getVersionIndicator() const
Gets the version indicator. Capital letter 'V' or 'R' for releases.
Definition: DataHeader.cpp:45
void setVersionIndicator(const uint8_t &version_indicator)
Sets the version indicator.
Definition: DataHeader.cpp:50
uint16_t getDerivedValuesBlockOffset() const
Gets the derived values block offset.
Definition: DataHeader.cpp:175
uint16_t getDerivedValuesBlockSize() const
Gets the derived values block size.
Definition: DataHeader.cpp:185
uint32_t getSequenceNumber() const
Gets the sequence number of the measurement data.
Definition: DataHeader.cpp:115
uint8_t getVersionRelease() const
Gets the release of the version.
Definition: DataHeader.cpp:75
DataHeader()
Constructor of an empty data header.
Definition: DataHeader.cpp:40
void setVersionMinorVersion(const uint8_t &version_minor_version)
Sets the minor version number.
Definition: DataHeader.cpp:70
void setMeasurementDataBlockSize(const uint16_t &measurement_data_block_size)
Sets the measurement data block size.
Definition: DataHeader.cpp:210
void setApplicationDataBlockOffset(const uint16_t &application_data_block_offset)
Sets the application io data block offset.
Definition: DataHeader.cpp:240


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