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

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

#include <UDPPacketMerger.h>

List of all members.

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.
sick::datastructure::PacketBuffer getDeployedPacketBuffer ()
 Get the latest complete data packet.
bool isComplete () const
 Returns if a data packet is complete.
 UDPPacketMerger ()
 Constructor of udp packet merger.

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::ParsedPacketBufferVector
m_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

Constructor of udp packet merger.

Definition at line 40 of file UDPPacketMerger.cpp.


Member Function Documentation

Definition at line 73 of file UDPPacketMerger.cpp.

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.

Definition at line 124 of file UDPPacketMerger.cpp.

Definition at line 110 of file UDPPacketMerger.cpp.

Definition at line 91 of file UDPPacketMerger.cpp.

Get the latest complete data packet.

Returns:
The latest complete data packet.

Definition at line 52 of file UDPPacketMerger.cpp.

Definition at line 138 of file UDPPacketMerger.cpp.

Returns if a data packet is complete.

Returns:
If a data packet is complete.

Definition at line 47 of file UDPPacketMerger.cpp.

Definition at line 148 of file UDPPacketMerger.cpp.


Member Data Documentation

Definition at line 84 of file UDPPacketMerger.h.

Definition at line 83 of file UDPPacketMerger.h.

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 Tue May 7 2019 03:27:37