Public Member Functions | Private Member Functions | Private Attributes | List of all members
sick::data_processing::ParseIntrusionData Class Reference

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

#include <ParseIntrusionData.h>

Public Member Functions

uint16_t getNumScanPoints () const
 
 ParseIntrusionData ()
 Constructor of the parser. More...
 
datastructure::IntrusionData parseUDPSequence (const datastructure::PacketBuffer &buffer, datastructure::Data &data)
 Parse a udp sequence to read the intrusion data if enabled. More...
 
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 (std::vector< uint8_t >::const_iterator data_ptr, datastructure::IntrusionData &intrusion_data) const
 
void setDataInIntrusionDatums (std::vector< uint8_t >::const_iterator data_ptr, std::vector< sick::datastructure::IntrusionDatum > &intrusion_datums) const
 
uint16_t setFlagsInIntrusionDatum (const uint16_t &offset, std::vector< uint8_t >::const_iterator data_ptr, sick::datastructure::IntrusionDatum &datum) const
 
uint16_t setSizeInIntrusionDatum (const uint16_t &offset, std::vector< uint8_t >::const_iterator data_ptr, sick::datastructure::IntrusionDatum &datum) const
 

Private Attributes

uint16_t m_num_scan_points
 

Detailed Description

Parser to read the intrusion data from a udp sequence.

Definition at line 52 of file ParseIntrusionData.h.

Constructor & Destructor Documentation

sick::data_processing::ParseIntrusionData::ParseIntrusionData ( )

Constructor of the parser.

Definition at line 40 of file ParseIntrusionData.cpp.

Member Function Documentation

bool sick::data_processing::ParseIntrusionData::checkIfDataContainsNeededParsedBlocks ( const datastructure::Data data) const
private

Definition at line 81 of file ParseIntrusionData.cpp.

bool sick::data_processing::ParseIntrusionData::checkIfIntrusionDataIsPublished ( const datastructure::Data data) const
private

Definition at line 75 of file ParseIntrusionData.cpp.

bool sick::data_processing::ParseIntrusionData::checkIfPreconditionsAreMet ( const datastructure::Data data) const
private

Definition at line 62 of file ParseIntrusionData.cpp.

uint16_t sick::data_processing::ParseIntrusionData::getNumScanPoints ( ) const

Definition at line 95 of file ParseIntrusionData.cpp.

datastructure::IntrusionData sick::data_processing::ParseIntrusionData::parseUDPSequence ( const datastructure::PacketBuffer buffer,
datastructure::Data data 
)

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 43 of file ParseIntrusionData.cpp.

void sick::data_processing::ParseIntrusionData::setDataInIntrusionData ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::IntrusionData intrusion_data 
) const
private

Definition at line 105 of file ParseIntrusionData.cpp.

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

Definition at line 113 of file ParseIntrusionData.cpp.

uint16_t sick::data_processing::ParseIntrusionData::setFlagsInIntrusionDatum ( const uint16_t &  offset,
std::vector< uint8_t >::const_iterator  data_ptr,
sick::datastructure::IntrusionDatum datum 
) const
private

Definition at line 142 of file ParseIntrusionData.cpp.

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

Definition at line 100 of file ParseIntrusionData.cpp.

uint16_t sick::data_processing::ParseIntrusionData::setSizeInIntrusionDatum ( const uint16_t &  offset,
std::vector< uint8_t >::const_iterator  data_ptr,
sick::datastructure::IntrusionDatum datum 
) const
private

Definition at line 132 of file ParseIntrusionData.cpp.

Member Data Documentation

uint16_t sick::data_processing::ParseIntrusionData::m_num_scan_points
private

Definition at line 74 of file ParseIntrusionData.h.


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


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