Main Page
Namespaces
Classes
Files
File List
File Members
src
datastructure
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
35
#include <
sick_safetyscanners/datastructure/DataHeader.h
>
36
37
namespace
sick
{
38
namespace
datastructure {
39
40
DataHeader::DataHeader
()
41
: m_is_empty(false)
42
{
43
}
44
45
uint8_t
DataHeader::getVersionIndicator
()
const
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
55
uint8_t
DataHeader::getVersionMajorVersion
()
const
56
{
57
return
m_version_major_version
;
58
}
59
60
void
DataHeader::setVersionMajorVersion
(
const
uint8_t& version_major_version)
61
{
62
m_version_major_version
= version_major_version;
63
}
64
65
uint8_t
DataHeader::getVersionMinorVersion
()
const
66
{
67
return
m_version_minor_version
;
68
}
69
70
void
DataHeader::setVersionMinorVersion
(
const
uint8_t& version_minor_version)
71
{
72
m_version_minor_version
= version_minor_version;
73
}
74
75
uint8_t
DataHeader::getVersionRelease
()
const
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
85
uint32_t
DataHeader::getSerialNumberOfDevice
()
const
86
{
87
return
m_serial_number_of_device
;
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
95
uint32_t
DataHeader::getSerialNumberOfSystemPlug
()
const
96
{
97
return
m_serial_number_of_system_plug
;
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
105
uint8_t
DataHeader::getChannelNumber
()
const
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
115
uint32_t
DataHeader::getSequenceNumber
()
const
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
125
uint32_t
DataHeader::getScanNumber
()
const
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
135
uint16_t
DataHeader::getTimestampDate
()
const
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
145
uint32_t
DataHeader::getTimestampTime
()
const
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
155
uint16_t
DataHeader::getGeneralSystemStateBlockOffset
()
const
156
{
157
return
m_general_system_state_block_offset
;
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
165
uint16_t
DataHeader::getGeneralSystemStateBlockSize
()
const
166
{
167
return
m_general_system_state_block_size
;
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
175
uint16_t
DataHeader::getDerivedValuesBlockOffset
()
const
176
{
177
return
m_derived_values_block_offset
;
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
185
uint16_t
DataHeader::getDerivedValuesBlockSize
()
const
186
{
187
return
m_derived_values_block_size
;
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
195
uint16_t
DataHeader::getMeasurementDataBlockOffset
()
const
196
{
197
return
m_measurement_data_block_offset
;
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
205
uint16_t
DataHeader::getMeasurementDataBlockSize
()
const
206
{
207
return
m_measurement_data_block_size
;
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
215
uint16_t
DataHeader::getIntrusionDataBlockOffset
()
const
216
{
217
return
m_intrusion_data_block_offset
;
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
225
uint16_t
DataHeader::getIntrusionDataBlockSize
()
const
226
{
227
return
m_intrusion_data_block_size
;
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
235
uint16_t
DataHeader::getApplicationDataBlockOffset
()
const
236
{
237
return
m_application_data_block_offset
;
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
245
uint16_t
DataHeader::getApplicationDataBlockSize
()
const
246
{
247
return
m_application_data_block_size
;
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
255
bool
DataHeader::isEmpty
()
const
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
sick::datastructure::DataHeader::getIntrusionDataBlockOffset
uint16_t getIntrusionDataBlockOffset() const
Gets the intrusion data block offset.
Definition:
DataHeader.cpp:215
sick::datastructure::DataHeader::getVersionMajorVersion
uint8_t getVersionMajorVersion() const
Returns the major version number. Different numbers indicate incompatible implementation.
Definition:
DataHeader.cpp:55
sick::datastructure::DataHeader::m_timestamp_date
uint16_t m_timestamp_date
Definition:
DataHeader.h:400
sick::datastructure::DataHeader::m_version_major_version
uint8_t m_version_major_version
Definition:
DataHeader.h:392
sick::datastructure::DataHeader::getSerialNumberOfDevice
uint32_t getSerialNumberOfDevice() const
Gets the serial number of the device.
Definition:
DataHeader.cpp:85
sick::datastructure::DataHeader::setTimestampTime
void setTimestampTime(const uint32_t ×tamp_time)
Sets the timestamp time.
Definition:
DataHeader.cpp:150
sick::datastructure::DataHeader::setMeasurementDataBlockOffset
void setMeasurementDataBlockOffset(const uint16_t &measurement_data_block_offset)
Sets the measurement data block offset.
Definition:
DataHeader.cpp:200
sick::datastructure::DataHeader::setChannelNumber
void setChannelNumber(const uint8_t &channel_number)
Sets the number of channel the measurement data belongs to.
Definition:
DataHeader.cpp:110
DataHeader.h
sick::datastructure::DataHeader::isEmpty
bool isEmpty() const
Checks if the data header block is empty.
Definition:
DataHeader.cpp:255
sick::datastructure::DataHeader::getApplicationDataBlockOffset
uint16_t getApplicationDataBlockOffset() const
Gets the application io data block offset.
Definition:
DataHeader.cpp:235
sick::datastructure::DataHeader::setApplicationDataBlockSize
void setApplicationDataBlockSize(const uint16_t &application_data_block_size)
Sets the application io data block size.
Definition:
DataHeader.cpp:250
sick::datastructure::DataHeader::getTimestampDate
uint16_t getTimestampDate() const
Gets the timestamp date.
Definition:
DataHeader.cpp:135
sick::datastructure::DataHeader::setSerialNumberOfDevice
void setSerialNumberOfDevice(const uint32_t &serial_number_of_device)
Sets the serial number of the device.
Definition:
DataHeader.cpp:90
sick::datastructure::DataHeader::m_serial_number_of_device
uint32_t m_serial_number_of_device
Definition:
DataHeader.h:395
sick::datastructure::DataHeader::getIntrusionDataBlockSize
uint16_t getIntrusionDataBlockSize() const
Gets the intrusion data block size.
Definition:
DataHeader.cpp:225
sick::datastructure::DataHeader::m_channel_number
uint8_t m_channel_number
Definition:
DataHeader.h:397
sick::datastructure::DataHeader::getSerialNumberOfSystemPlug
uint32_t getSerialNumberOfSystemPlug() const
Gets the serial number of the system plug.
Definition:
DataHeader.cpp:95
sick::datastructure::DataHeader::getMeasurementDataBlockSize
uint16_t getMeasurementDataBlockSize() const
Gets the measurement data block size.
Definition:
DataHeader.cpp:205
sick::datastructure::DataHeader::getGeneralSystemStateBlockSize
uint16_t getGeneralSystemStateBlockSize() const
Gets the general system state block size.
Definition:
DataHeader.cpp:165
sick::datastructure::DataHeader::setGeneralSystemStateBlockOffset
void setGeneralSystemStateBlockOffset(const uint16_t &general_system_state_block_offset)
Sets the general system state block offset.
Definition:
DataHeader.cpp:160
sick::datastructure::DataHeader::m_derived_values_block_offset
uint16_t m_derived_values_block_offset
Definition:
DataHeader.h:404
sick::datastructure::DataHeader::setIntrusionDataBlockSize
void setIntrusionDataBlockSize(const uint16_t &intrusion_data_block_size)
Sets the intrusion data block size.
Definition:
DataHeader.cpp:230
sick::datastructure::DataHeader::m_version_minor_version
uint8_t m_version_minor_version
Definition:
DataHeader.h:393
sick::datastructure::DataHeader::getTimestampTime
uint32_t getTimestampTime() const
Gets the timestamp time.
Definition:
DataHeader.cpp:145
sick::datastructure::DataHeader::getApplicationDataBlockSize
uint16_t getApplicationDataBlockSize() const
Gets the application io data block size.
Definition:
DataHeader.cpp:245
sick::datastructure::DataHeader::setSequenceNumber
void setSequenceNumber(const uint32_t &sequence_number)
Sets the sequence number of the measurement data.
Definition:
DataHeader.cpp:120
sick::datastructure::DataHeader::m_general_system_state_block_size
uint16_t m_general_system_state_block_size
Definition:
DataHeader.h:403
sick::datastructure::DataHeader::m_measurement_data_block_size
uint16_t m_measurement_data_block_size
Definition:
DataHeader.h:407
sick::datastructure::DataHeader::getGeneralSystemStateBlockOffset
uint16_t getGeneralSystemStateBlockOffset() const
Gets the general system state block offset.
Definition:
DataHeader.cpp:155
sick::datastructure::DataHeader::m_version_release
uint8_t m_version_release
Definition:
DataHeader.h:394
sick::datastructure::DataHeader::getVersionMinorVersion
uint8_t getVersionMinorVersion() const
Returns the minor version number. Different numbers indicate compatible implementation if the major v...
Definition:
DataHeader.cpp:65
sick::datastructure::DataHeader::m_general_system_state_block_offset
uint16_t m_general_system_state_block_offset
Definition:
DataHeader.h:402
sick::datastructure::DataHeader::setDerivedValuesBlockOffset
void setDerivedValuesBlockOffset(const uint16_t &derived_values_block_offset)
Sets the derived values block offset.
Definition:
DataHeader.cpp:180
sick::datastructure::DataHeader::m_is_empty
bool m_is_empty
Definition:
DataHeader.h:389
sick::datastructure::DataHeader::setVersionRelease
void setVersionRelease(const uint8_t &version_release)
Sets the release of the version.
Definition:
DataHeader.cpp:80
sick::datastructure::DataHeader::setVersionMajorVersion
void setVersionMajorVersion(const uint8_t &version_major_version)
Sets the major version number.
Definition:
DataHeader.cpp:60
sick::datastructure::DataHeader::setIsEmpty
void setIsEmpty(bool is_empty)
Sets if the data header is empty.
Definition:
DataHeader.cpp:260
sick::datastructure::DataHeader::m_timestamp_time
uint32_t m_timestamp_time
Definition:
DataHeader.h:401
sick::datastructure::DataHeader::getScanNumber
uint32_t getScanNumber() const
Gets the scan number of the measurement data instance.
Definition:
DataHeader.cpp:125
sick::datastructure::DataHeader::m_application_data_block_size
uint16_t m_application_data_block_size
Definition:
DataHeader.h:411
sick::datastructure::DataHeader::setDerivedValuesBlockSize
void setDerivedValuesBlockSize(const uint16_t &derived_values_block_size)
Sets the derived values block size.
Definition:
DataHeader.cpp:190
sick::datastructure::DataHeader::setScanNumber
void setScanNumber(const uint32_t &scan_number)
Sets the scan number of the measurement data.
Definition:
DataHeader.cpp:130
sick::datastructure::DataHeader::m_sequence_number
uint32_t m_sequence_number
Definition:
DataHeader.h:398
sick::datastructure::DataHeader::setSerialNumberOfSystemPlug
void setSerialNumberOfSystemPlug(const uint32_t &serial_number_of_system_plug)
Sets the serial number of the system plug.
Definition:
DataHeader.cpp:100
sick
Definition:
ApplicationNameVariableCommand.h:43
sick::datastructure::DataHeader::setTimestampDate
void setTimestampDate(const uint16_t ×tamp_date)
Sets the timestamp date.
Definition:
DataHeader.cpp:140
sick::datastructure::DataHeader::setIntrusionDataBlockOffset
void setIntrusionDataBlockOffset(const uint16_t &intrusion_data_block_offset)
Sets the intrusion data block offset.
Definition:
DataHeader.cpp:220
sick::datastructure::DataHeader::getChannelNumber
uint8_t getChannelNumber() const
Gets the number of channel the measurement data belongs to.
Definition:
DataHeader.cpp:105
sick::datastructure::DataHeader::getMeasurementDataBlockOffset
uint16_t getMeasurementDataBlockOffset() const
Gets the measurement data block offset.
Definition:
DataHeader.cpp:195
sick::datastructure::DataHeader::setGeneralSystemStateBlockSize
void setGeneralSystemStateBlockSize(const uint16_t &general_system_state_block_size)
Sets the general system state block size.
Definition:
DataHeader.cpp:170
sick::datastructure::DataHeader::getVersionIndicator
uint8_t getVersionIndicator() const
Gets the version indicator. Capital letter 'V' or 'R' for releases.
Definition:
DataHeader.cpp:45
sick::datastructure::DataHeader::setVersionIndicator
void setVersionIndicator(const uint8_t &version_indicator)
Sets the version indicator.
Definition:
DataHeader.cpp:50
sick::datastructure::DataHeader::getDerivedValuesBlockOffset
uint16_t getDerivedValuesBlockOffset() const
Gets the derived values block offset.
Definition:
DataHeader.cpp:175
sick::datastructure::DataHeader::m_scan_number
uint32_t m_scan_number
Definition:
DataHeader.h:399
sick::datastructure::DataHeader::getDerivedValuesBlockSize
uint16_t getDerivedValuesBlockSize() const
Gets the derived values block size.
Definition:
DataHeader.cpp:185
sick::datastructure::DataHeader::getSequenceNumber
uint32_t getSequenceNumber() const
Gets the sequence number of the measurement data.
Definition:
DataHeader.cpp:115
sick::datastructure::DataHeader::getVersionRelease
uint8_t getVersionRelease() const
Gets the release of the version.
Definition:
DataHeader.cpp:75
sick::datastructure::DataHeader::DataHeader
DataHeader()
Constructor of an empty data header.
Definition:
DataHeader.cpp:40
sick::datastructure::DataHeader::m_intrusion_data_block_size
uint16_t m_intrusion_data_block_size
Definition:
DataHeader.h:409
sick::datastructure::DataHeader::setVersionMinorVersion
void setVersionMinorVersion(const uint8_t &version_minor_version)
Sets the minor version number.
Definition:
DataHeader.cpp:70
sick::datastructure::DataHeader::m_measurement_data_block_offset
uint16_t m_measurement_data_block_offset
Definition:
DataHeader.h:406
sick::datastructure::DataHeader::setMeasurementDataBlockSize
void setMeasurementDataBlockSize(const uint16_t &measurement_data_block_size)
Sets the measurement data block size.
Definition:
DataHeader.cpp:210
sick::datastructure::DataHeader::m_serial_number_of_system_plug
uint32_t m_serial_number_of_system_plug
Definition:
DataHeader.h:396
sick::datastructure::DataHeader::m_intrusion_data_block_offset
uint16_t m_intrusion_data_block_offset
Definition:
DataHeader.h:408
sick::datastructure::DataHeader::m_application_data_block_offset
uint16_t m_application_data_block_offset
Definition:
DataHeader.h:410
sick::datastructure::DataHeader::m_version_indicator
uint8_t m_version_indicator
Definition:
DataHeader.h:391
sick::datastructure::DataHeader::setApplicationDataBlockOffset
void setApplicationDataBlockOffset(const uint16_t &application_data_block_offset)
Sets the application io data block offset.
Definition:
DataHeader.cpp:240
sick::datastructure::DataHeader::m_derived_values_block_size
uint16_t m_derived_values_block_size
Definition:
DataHeader.h:405
sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41