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

Parser to parse the general system state from the udp packets. More...

#include <ParseGeneralSystemState.h>

Public Member Functions

 ParseGeneralSystemState ()
 Constructor of the parser. More...
 
datastructure::GeneralSystemState parseUDPSequence (const sick::datastructure::PacketBuffer &buffer, datastructure::Data &data) const
 Parses the udp sequence to read the general system state if enabled. More...
 

Private Member Functions

bool checkIfDataContainsNeededParsedBlocks (const datastructure::Data &data) const
 
bool checkIfGeneralSystemStateIsPublished (const datastructure::Data &data) const
 
bool checkIfPreconditionsAreMet (const datastructure::Data &data) const
 
void setCurrentMonitoringCasesInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setDataInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setErrorsInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setNonSafeCutOffPathInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setResetRequiredCutOffPathInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setSafeCutOffPathInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 
void setStatusBitsInGeneralSystemState (std::vector< uint8_t >::const_iterator data_ptr, datastructure::GeneralSystemState &general_system_state) const
 

Detailed Description

Parser to parse the general system state from the udp packets.

Definition at line 52 of file ParseGeneralSystemState.h.

Constructor & Destructor Documentation

sick::data_processing::ParseGeneralSystemState::ParseGeneralSystemState ( )

Constructor of the parser.

Definition at line 40 of file ParseGeneralSystemState.cpp.

Member Function Documentation

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

Definition at line 82 of file ParseGeneralSystemState.cpp.

bool sick::data_processing::ParseGeneralSystemState::checkIfGeneralSystemStateIsPublished ( const datastructure::Data data) const
private

Definition at line 75 of file ParseGeneralSystemState.cpp.

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

Definition at line 61 of file ParseGeneralSystemState.cpp.

datastructure::GeneralSystemState sick::data_processing::ParseGeneralSystemState::parseUDPSequence ( const sick::datastructure::PacketBuffer buffer,
datastructure::Data data 
) const

Parses the udp sequence to read the general system state if enabled.

Parameters
bufferThe incoming sequence.
dataThe already parsed data. Used to check if the general system state is enabled.
Returns
If parsing was successful.

Definition at line 43 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setCurrentMonitoringCasesInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 185 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setDataInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 89 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setErrorsInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 199 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setNonSafeCutOffPathInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 139 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setResetRequiredCutOffPathInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 162 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setSafeCutOffPathInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 116 of file ParseGeneralSystemState.cpp.

void sick::data_processing::ParseGeneralSystemState::setStatusBitsInGeneralSystemState ( std::vector< uint8_t >::const_iterator  data_ptr,
datastructure::GeneralSystemState general_system_state 
) const
private

Definition at line 101 of file ParseGeneralSystemState.cpp.


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