ParsedPacketBuffer.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_PARSEDPACKETBUFFER_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_PARSEDPACKETBUFFER_H
37 
38 #include <iostream>
39 #include <stdint.h>
40 #include <string>
41 #include <vector>
42 
43 #include <boost/array.hpp>
44 #include <boost/asio.hpp>
45 
48 
49 
50 namespace sick {
51 namespace datastructure {
52 
53 
58 {
59 public:
60  typedef std::vector<ParsedPacketBuffer> ParsedPacketBufferVector;
61 
68  sick::datastructure::DatagramHeader datagram_header);
69 
77  const ParsedPacketBuffer& ppb2)
78  {
80  }
81 
87 
92  void setPacketBuffer(const sick::datastructure::PacketBuffer& packet_buffer);
93 
94 private:
99 
104 };
105 
106 
107 } // namespace datastructure
108 } // namespace sick
109 
110 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_PACKETBUFFER_H
uint32_t getFragmentOffset() const
Gets the fragment offset of the data.
Struct of a PacketBuffer with a parsed header.
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
ParsedPacketBuffer(const sick::datastructure::PacketBuffer &packet_buffer, sick::datastructure::DatagramHeader datagram_header)
Constructor of ParsedPacketBuffer.
void setPacketBuffer(const sick::datastructure::PacketBuffer &packet_buffer)
Sets the packet buffer in the parsed packet buffer.
sick::datastructure::PacketBuffer getPacketBuffer() const
Returns the contains packet buffer of the parsed packet buffer.
static bool sortForIncreasingOffset(const ParsedPacketBuffer &ppb1, const ParsedPacketBuffer &ppb2)
Static function to sort ParsedPacketBuffers.
sick::datastructure::DatagramHeader m_datagram_header
Parsed datagramheader.
sick::datastructure::PacketBuffer m_packet_buffer
PacketBuffer.
std::vector< ParsedPacketBuffer > ParsedPacketBufferVector
Contains the contents of a udp datagram header. Used to match the datagrams together to form a comple...


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