Merges udp packets together to a complete data packet. More...
#include <UDPPacketMerger.h>
Merges udp packets together to a complete data packet.
Definition at line 51 of file UDPPacketMerger.h.
Constructor of udp packet merger.
Definition at line 40 of file UDPPacketMerger.cpp.
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.
buffer | The new udp packet. |
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.
Definition at line 52 of file UDPPacketMerger.cpp.
Definition at line 138 of file UDPPacketMerger.cpp.
bool sick::data_processing::UDPPacketMerger::isComplete | ( | ) | const |
Returns if a data packet is complete.
Definition at line 47 of file UDPPacketMerger.cpp.
Definition at line 148 of file UDPPacketMerger.cpp.
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.