Main Page
Namespaces
Classes
Files
File List
File Members
include
sick_safetyscanners
data_processing
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
39
#include <
sick_safetyscanners/datastructure/Data.h
>
40
#include <
sick_safetyscanners/datastructure/DataHeader.h
>
41
#include <
sick_safetyscanners/datastructure/PacketBuffer.h
>
42
43
#include <
sick_safetyscanners/data_processing/ReadWriteHelper.h
>
44
45
namespace
sick
{
46
namespace
data_processing {
47
54
class
ParseDataHeader
55
{
56
public
:
60
ParseDataHeader
();
61
70
datastructure::DataHeader
parseUDPSequence
(
const
datastructure::PacketBuffer
& buffer,
71
datastructure::Data
& data)
const
;
72
73
private
:
74
std::shared_ptr<sick::data_processing::ReadWriteHelper>
m_reader_ptr
;
75
void
setVersionIndicatorInDataHeader
(
const
uint8_t*& data_ptr,
76
datastructure::DataHeader
& data_header)
const
;
77
void
setMajorVersionInDataHeader
(
const
uint8_t*& data_ptr,
78
datastructure::DataHeader
& data_header)
const
;
79
void
setMinorVersionInDataHeader
(
const
uint8_t*& data_ptr,
80
datastructure::DataHeader
& data_header)
const
;
81
void
setVersionReleaseInDataHeader
(
const
uint8_t*& data_ptr,
82
datastructure::DataHeader
& data_header)
const
;
83
void
setSerialNumberOfDeviceInDataHeader
(
const
uint8_t*& data_ptr,
84
datastructure::DataHeader
& data_header)
const
;
85
void
setSerialNumberOfSystemPlugInDataHeader
(
const
uint8_t*& data_ptr,
86
datastructure::DataHeader
& data_header)
const
;
87
void
setChannelNumberInDataHeader
(
const
uint8_t*& data_ptr,
88
datastructure::DataHeader
& data_header)
const
;
89
void
setSequenceNumberInDataHeader
(
const
uint8_t*& data_ptr,
90
datastructure::DataHeader
& data_header)
const
;
91
void
setScanNumberInDataHeader
(
const
uint8_t*& data_ptr,
92
datastructure::DataHeader
& data_header)
const
;
93
void
setTimestampDateInDataHeader
(
const
uint8_t*& data_ptr,
94
datastructure::DataHeader
& data_header)
const
;
95
void
setTimestampTimeInDataHeader
(
const
uint8_t*& data_ptr,
96
datastructure::DataHeader
& data_header)
const
;
97
void
setGeneralSystemStateBlockOffsetInDataHeader
(
const
uint8_t*& data_ptr,
98
datastructure::DataHeader
& data_header)
const
;
99
void
setGeneralSystemStateBlockSizeInDataHeader
(
const
uint8_t*& data_ptr,
100
datastructure::DataHeader
& data_header)
const
;
101
void
setDerivedValuesBlockOffsetInDataHeader
(
const
uint8_t*& data_ptr,
102
datastructure::DataHeader
& data_header)
const
;
103
void
setDerivedValuesBlockSizeInDataHeader
(
const
uint8_t*& data_ptr,
104
datastructure::DataHeader
& data_header)
const
;
105
void
setMeasurementDataBlockOffsetInDataHeader
(
const
uint8_t*& data_ptr,
106
datastructure::DataHeader
& data_header)
const
;
107
void
setMeasurementDataBlockSizeInDataHeader
(
const
uint8_t*& data_ptr,
108
datastructure::DataHeader
& data_header)
const
;
109
void
setIntrusionDataBlockOffsetInDataHeader
(
const
uint8_t*& data_ptr,
110
datastructure::DataHeader
& data_header)
const
;
111
void
setIntrusionDataBlockSizeInDataHeader
(
const
uint8_t*& data_ptr,
112
datastructure::DataHeader
& data_header)
const
;
113
void
setApplicationDataBlockOffsetInDataHeader
(
const
uint8_t*& data_ptr,
114
datastructure::DataHeader
& data_header)
const
;
115
void
setApplicationDataBlockSizeInDataHeader
(
const
uint8_t*& data_ptr,
116
datastructure::DataHeader
& data_header)
const
;
117
void
setDataInDataHeader
(
const
uint8_t*& data_ptr,
datastructure::DataHeader
& data_header)
const
;
118
void
setVersionInDataHeader
(
const
uint8_t*& data_ptr,
119
datastructure::DataHeader
& data_header)
const
;
120
void
setScanHeaderInDataHeader
(
const
uint8_t*& data_ptr,
121
datastructure::DataHeader
& data_header)
const
;
122
void
setDataBlocksInDataHeader
(
const
uint8_t*& 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
sick::data_processing::ParseDataHeader::ParseDataHeader
ParseDataHeader()
Constructor of the parser.
Definition:
ParseDataHeader.cpp:40
sick::data_processing::ParseDataHeader::setIntrusionDataBlockOffsetInDataHeader
void setIntrusionDataBlockOffsetInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:203
ReadWriteHelper.h
PacketBuffer.h
DataHeader.h
sick::datastructure::PacketBuffer
A packetbuffer for the raw data from the sensor.
Definition:
PacketBuffer.h:61
sick::data_processing::ParseDataHeader::setSequenceNumberInDataHeader
void setSequenceNumberInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:142
sick::data_processing::ParseDataHeader::setScanHeaderInDataHeader
void setScanHeaderInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:75
sick::data_processing::ParseDataHeader::setMinorVersionInDataHeader
void setMinorVersionInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:112
sick::data_processing::ParseDataHeader::setSerialNumberOfDeviceInDataHeader
void setSerialNumberOfDeviceInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:124
sick::data_processing::ParseDataHeader::parseUDPSequence
datastructure::DataHeader parseUDPSequence(const datastructure::PacketBuffer &buffer, datastructure::Data &data) const
Parses the data header from a udp sequence.
Definition:
ParseDataHeader.cpp:46
sick::data_processing::ParseDataHeader::setDerivedValuesBlockSizeInDataHeader
void setDerivedValuesBlockSizeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:185
sick::data_processing::ParseDataHeader::setScanNumberInDataHeader
void setScanNumberInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:148
sick::data_processing::ParseDataHeader::setTimestampTimeInDataHeader
void setTimestampTimeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:160
Data.h
sick::data_processing::ParseDataHeader::setChannelNumberInDataHeader
void setChannelNumberInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:136
sick::datastructure::Data
The data class containing all data blocks of a measurement.
Definition:
Data.h:55
sick::data_processing::ParseDataHeader::setSerialNumberOfSystemPlugInDataHeader
void setSerialNumberOfSystemPlugInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:130
sick::data_processing::ParseDataHeader::setApplicationDataBlockOffsetInDataHeader
void setApplicationDataBlockOffsetInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:215
sick::data_processing::ParseDataHeader::setDataInDataHeader
void setDataInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:55
sick::data_processing::ParseDataHeader::setVersionIndicatorInDataHeader
void setVersionIndicatorInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:100
sick::data_processing::ParseDataHeader::setVersionReleaseInDataHeader
void setVersionReleaseInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:118
sick::data_processing::ParseDataHeader::setApplicationDataBlockSizeInDataHeader
void setApplicationDataBlockSizeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:221
sick::data_processing::ParseDataHeader::setMeasurementDataBlockOffsetInDataHeader
void setMeasurementDataBlockOffsetInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:191
sick::data_processing::ParseDataHeader::setTimestampDateInDataHeader
void setTimestampDateInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:154
sick::data_processing::ParseDataHeader::setGeneralSystemStateBlockOffsetInDataHeader
void setGeneralSystemStateBlockOffsetInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:166
sick
Definition:
ChangeCommSettingsCommand.h:43
sick::data_processing::ParseDataHeader::m_reader_ptr
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Definition:
ParseDataHeader.h:74
sick::data_processing::ParseDataHeader::setMajorVersionInDataHeader
void setMajorVersionInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:106
sick::datastructure::DataHeader
Contains the content of the data header of a udp data packet.
Definition:
DataHeader.h:46
sick::data_processing::ParseDataHeader::setIntrusionDataBlockSizeInDataHeader
void setIntrusionDataBlockSizeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:209
sick::data_processing::ParseDataHeader::setMeasurementDataBlockSizeInDataHeader
void setMeasurementDataBlockSizeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:197
sick::data_processing::ParseDataHeader::setDerivedValuesBlockOffsetInDataHeader
void setDerivedValuesBlockOffsetInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:179
sick::data_processing::ParseDataHeader
Parser for the data header.
Definition:
ParseDataHeader.h:54
sick::data_processing::ParseDataHeader::setGeneralSystemStateBlockSizeInDataHeader
void setGeneralSystemStateBlockSizeInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:173
sick::data_processing::ParseDataHeader::setVersionInDataHeader
void setVersionInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:64
sick::data_processing::ParseDataHeader::setDataBlocksInDataHeader
void setDataBlocksInDataHeader(const uint8_t *&data_ptr, datastructure::DataHeader &data_header) const
Definition:
ParseDataHeader.cpp:85
sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08