Main Page
Namespaces
Classes
Files
File List
File Members
include
sick_safetyscanners
data_processing
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
38
#include <
sick_safetyscanners/datastructure/Data.h
>
39
#include <
sick_safetyscanners/datastructure/FieldData.h
>
40
#include <
sick_safetyscanners/datastructure/PacketBuffer.h
>
41
42
#include <
sick_safetyscanners/data_processing/ReadWriteHelper.h
>
43
44
namespace
sick
{
45
46
namespace
data_processing {
47
48
52
class
ParseFieldHeaderData
53
{
54
public
:
58
ParseFieldHeaderData
();
59
68
bool
parseTCPSequence
(
const
datastructure::PacketBuffer
& buffer,
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
sick::data_processing::ParseFieldHeaderData::isValid
bool isValid(const uint8_t *&data_ptr) const
Definition:
ParseFieldHeaderData.cpp:64
ReadWriteHelper.h
PacketBuffer.h
FieldData.h
sick::datastructure::PacketBuffer
A packetbuffer for the raw data from the sensor.
Definition:
PacketBuffer.h:61
sick::datastructure::FieldData
Field data for warning and protective fields.
Definition:
FieldData.h:48
Data.h
sick::data_processing::ParseFieldHeaderData::readFieldType
uint8_t readFieldType(const uint8_t *&data_ptr) const
Definition:
ParseFieldHeaderData.cpp:93
sick::data_processing::ParseFieldHeaderData
Parser to read the field header for protective and warning fields.
Definition:
ParseFieldHeaderData.h:52
sick::data_processing::ParseFieldHeaderData::readSetIndex
uint16_t readSetIndex(const uint8_t *&data_ptr) const
Definition:
ParseFieldHeaderData.cpp:98
sick
Definition:
ChangeCommSettingsCommand.h:43
sick::data_processing::ParseFieldHeaderData::ParseFieldHeaderData
ParseFieldHeaderData()
Constructor of the parser.
Definition:
ParseFieldHeaderData.cpp:42
sick::data_processing::ParseFieldHeaderData::m_reader_ptr
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Definition:
ParseFieldHeaderData.h:72
sick::data_processing::ParseFieldHeaderData::setFieldType
void setFieldType(const uint8_t *&data_ptr, datastructure::FieldData &field_data) const
Definition:
ParseFieldHeaderData.cpp:76
sick::data_processing::ParseFieldHeaderData::parseTCPSequence
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.
Definition:
ParseFieldHeaderData.cpp:48
sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08