Class ParsedPacketBuffer
Defined in File ParsedPacketBuffer.h
Class Documentation
-
class ParsedPacketBuffer
Struct of a PacketBuffer with a parsed header.
Public Types
-
typedef std::vector<ParsedPacketBuffer> ParsedPacketBufferVector
Public Functions
-
ParsedPacketBuffer(const sick::datastructure::PacketBuffer &packet_buffer, sick::datastructure::DatagramHeader datagram_header)
Constructor of ParsedPacketBuffer.
- Parameters:
packet_buffer – Input Packetbuffer
datagram_header – Input parsed header of PacketBuffer.
-
sick::datastructure::PacketBuffer getPacketBuffer() const
Returns the contains packet buffer of the parsed packet buffer.
- Returns:
The packet buffer, contained in the parsed packet buffer.
-
void setPacketBuffer(const sick::datastructure::PacketBuffer &packet_buffer)
Sets the packet buffer in the parsed packet buffer.
- Parameters:
packet_buffer – The new packet buffer for the parsed packet buffer.
Public Static Functions
-
static inline bool sortForIncreasingOffset(const ParsedPacketBuffer &ppb1, const ParsedPacketBuffer &ppb2)
Static function to sort ParsedPacketBuffers.
- Parameters:
ppb1 – First ParsedPacketBuffer.
ppb2 – Second ParsedPacketBuffer.
- Returns:
If first is smaller then second.
-
typedef std::vector<ParsedPacketBuffer> ParsedPacketBufferVector