Public Member Functions | Private Member Functions | Private Attributes
sick::data_processing::ParseIntrusionData Class Reference

Parser to read the intrusion data from a udp sequence. More...

#include <ParseIntrusionData.h>

List of all members.

Public Member Functions

uint16_t getNumScanPoints () const
 ParseIntrusionData ()
 Constructor of the parser.
datastructure::IntrusionData parseUDPSequence (const datastructure::PacketBuffer &buffer, datastructure::Data &data)
 Parse a udp sequence to read the intrusion data if enabled.
void setNumScanPoints (const uint16_t num_scan_points)

Private Member Functions

bool checkIfDataContainsNeededParsedBlocks (const datastructure::Data &data) const
bool checkIfIntrusionDataIsPublished (const datastructure::Data &data) const
bool checkIfPreconditionsAreMet (const datastructure::Data &data) const
void setDataInIntrusionData (const uint8_t *&data_ptr, datastructure::IntrusionData &intrusion_data) const
void setDataInIntrusionDatums (const uint8_t *&data_ptr, std::vector< sick::datastructure::IntrusionDatum > &intrusion_datums) const
uint16_t setFlagsInIntrusionDatum (const uint16_t offset, const uint8_t *&data_ptr, sick::datastructure::IntrusionDatum &datum) const
uint16_t setSizeInIntrusionDatum (const uint16_t offset, const uint8_t *&data_ptr, sick::datastructure::IntrusionDatum &datum) const

Private Attributes

uint16_t m_num_scan_points
std::shared_ptr
< sick::data_processing::ReadWriteHelper
m_reader_ptr

Detailed Description

Parser to read the intrusion data from a udp sequence.

Definition at line 52 of file ParseIntrusionData.h.


Constructor & Destructor Documentation

Constructor of the parser.

Definition at line 40 of file ParseIntrusionData.cpp.


Member Function Documentation

Definition at line 86 of file ParseIntrusionData.cpp.

Definition at line 76 of file ParseIntrusionData.cpp.

Definition at line 63 of file ParseIntrusionData.cpp.

Definition at line 100 of file ParseIntrusionData.cpp.

Parse a udp sequence to read the intrusion data if enabled.

Parameters:
bufferThe incoming sequence.
dataThe already parsed data to check if intrusion data is enabled.
Returns:
The parsed intrusion data.

Definition at line 46 of file ParseIntrusionData.cpp.

void sick::data_processing::ParseIntrusionData::setDataInIntrusionData ( const uint8_t *&  data_ptr,
datastructure::IntrusionData intrusion_data 
) const [private]

Definition at line 110 of file ParseIntrusionData.cpp.

void sick::data_processing::ParseIntrusionData::setDataInIntrusionDatums ( const uint8_t *&  data_ptr,
std::vector< sick::datastructure::IntrusionDatum > &  intrusion_datums 
) const [private]

Definition at line 118 of file ParseIntrusionData.cpp.

uint16_t sick::data_processing::ParseIntrusionData::setFlagsInIntrusionDatum ( const uint16_t  offset,
const uint8_t *&  data_ptr,
sick::datastructure::IntrusionDatum datum 
) const [private]

Definition at line 144 of file ParseIntrusionData.cpp.

void sick::data_processing::ParseIntrusionData::setNumScanPoints ( const uint16_t  num_scan_points)

Definition at line 105 of file ParseIntrusionData.cpp.

uint16_t sick::data_processing::ParseIntrusionData::setSizeInIntrusionDatum ( const uint16_t  offset,
const uint8_t *&  data_ptr,
sick::datastructure::IntrusionDatum datum 
) const [private]

Definition at line 136 of file ParseIntrusionData.cpp.


Member Data Documentation

Definition at line 74 of file ParseIntrusionData.h.

Definition at line 76 of file ParseIntrusionData.h.


The documentation for this class was generated from the following files:


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:37