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

Merges udp packets together to a complete data packet. More...

#include <UDPPacketMerger.h>

Public Member Functions

bool addUDPPacket (const sick::datastructure::PacketBuffer &buffer)
 Adds a udp packet to the packet map, when a data packet is complete it will return true. More...
 
sick::datastructure::PacketBuffer getDeployedPacketBuffer ()
 Get the latest complete data packet. More...
 
bool isComplete () const
 Returns if a data packet is complete. More...
 
 UDPPacketMerger ()
 Constructor of udp packet merger. More...
 

Private Member Functions

bool addToMap (const sick::datastructure::PacketBuffer &buffer, const sick::datastructure::DatagramHeader &header)
 
uint32_t calcualteCurrentLengthOfParsedPacketBuffer (const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector &vec)
 
bool checkIfComplete (sick::datastructure::DatagramHeader &header)
 
bool deployPacketIfComplete (datastructure::DatagramHeader &header)
 
sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector getSortedParsedPacketBufferForIdentification (const sick::datastructure::DatagramHeader &header)
 
sick::datastructure::PacketBuffer::VectorBuffer removeHeaderFromParsedPacketBuffer (const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector &vec)
 

Private Attributes

sick::datastructure::PacketBuffer m_deployed_packet_buffer
 
bool m_is_complete
 
std::map< uint32_t, sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVectorm_parsed_packet_buffer_map
 

Detailed Description

Merges udp packets together to a complete data packet.

Definition at line 51 of file UDPPacketMerger.h.

Constructor & Destructor Documentation

sick::data_processing::UDPPacketMerger::UDPPacketMerger ( )

Constructor of udp packet merger.

Definition at line 40 of file UDPPacketMerger.cpp.

Member Function Documentation

bool sick::data_processing::UDPPacketMerger::addToMap ( const sick::datastructure::PacketBuffer buffer,
const sick::datastructure::DatagramHeader header 
)
private

Definition at line 73 of file UDPPacketMerger.cpp.

bool sick::data_processing::UDPPacketMerger::addUDPPacket ( const sick::datastructure::PacketBuffer buffer)

Adds a udp packet to the packet map, when a data packet is complete it will return true.

Parameters
bufferThe new udp packet.
Returns
True if a data packet is complete.

Definition at line 58 of file UDPPacketMerger.cpp.

uint32_t sick::data_processing::UDPPacketMerger::calcualteCurrentLengthOfParsedPacketBuffer ( const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector vec)
private

Definition at line 124 of file UDPPacketMerger.cpp.

bool sick::data_processing::UDPPacketMerger::checkIfComplete ( sick::datastructure::DatagramHeader header)
private

Definition at line 110 of file UDPPacketMerger.cpp.

bool sick::data_processing::UDPPacketMerger::deployPacketIfComplete ( datastructure::DatagramHeader header)
private

Definition at line 91 of file UDPPacketMerger.cpp.

sick::datastructure::PacketBuffer sick::data_processing::UDPPacketMerger::getDeployedPacketBuffer ( )

Get the latest complete data packet.

Returns
The latest complete data packet.

Definition at line 52 of file UDPPacketMerger.cpp.

sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector sick::data_processing::UDPPacketMerger::getSortedParsedPacketBufferForIdentification ( const sick::datastructure::DatagramHeader header)
private

Definition at line 138 of file UDPPacketMerger.cpp.

bool sick::data_processing::UDPPacketMerger::isComplete ( ) const

Returns if a data packet is complete.

Returns
If a data packet is complete.

Definition at line 47 of file UDPPacketMerger.cpp.

sick::datastructure::PacketBuffer::VectorBuffer sick::data_processing::UDPPacketMerger::removeHeaderFromParsedPacketBuffer ( const sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector vec)
private

Definition at line 148 of file UDPPacketMerger.cpp.

Member Data Documentation

sick::datastructure::PacketBuffer sick::data_processing::UDPPacketMerger::m_deployed_packet_buffer
private

Definition at line 84 of file UDPPacketMerger.h.

bool sick::data_processing::UDPPacketMerger::m_is_complete
private

Definition at line 83 of file UDPPacketMerger.h.

std::map<uint32_t, sick::datastructure::ParsedPacketBuffer::ParsedPacketBufferVector> sick::data_processing::UDPPacketMerger::m_parsed_packet_buffer_map
private

Definition at line 87 of file UDPPacketMerger.h.


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


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08