Public Types | Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
sick::datastructure::ParsedPacketBuffer Class Reference

Struct of a PacketBuffer with a parsed header. More...

#include <ParsedPacketBuffer.h>

Public Types

typedef std::vector< ParsedPacketBufferParsedPacketBufferVector
 

Public Member Functions

sick::datastructure::PacketBuffer getPacketBuffer () const
 Returns the contains packet buffer of the parsed packet buffer. More...
 
 ParsedPacketBuffer (const sick::datastructure::PacketBuffer &packet_buffer, sick::datastructure::DatagramHeader datagram_header)
 Constructor of ParsedPacketBuffer. More...
 
void setPacketBuffer (const sick::datastructure::PacketBuffer &packet_buffer)
 Sets the packet buffer in the parsed packet buffer. More...
 

Static Public Member Functions

static bool sortForIncreasingOffset (const ParsedPacketBuffer &ppb1, const ParsedPacketBuffer &ppb2)
 Static function to sort ParsedPacketBuffers. More...
 

Private Attributes

sick::datastructure::DatagramHeader m_datagram_header
 Parsed datagramheader. More...
 
sick::datastructure::PacketBuffer m_packet_buffer
 PacketBuffer. More...
 

Detailed Description

Struct of a PacketBuffer with a parsed header.

Definition at line 57 of file ParsedPacketBuffer.h.

Member Typedef Documentation

Definition at line 60 of file ParsedPacketBuffer.h.

Constructor & Destructor Documentation

sick::datastructure::ParsedPacketBuffer::ParsedPacketBuffer ( const sick::datastructure::PacketBuffer packet_buffer,
sick::datastructure::DatagramHeader  datagram_header 
)

Constructor of ParsedPacketBuffer.

Parameters
packet_bufferInput Packetbuffer
datagram_headerInput parsed header of PacketBuffer.

Definition at line 40 of file ParsedPacketBuffer.cpp.

Member Function Documentation

sick::datastructure::PacketBuffer sick::datastructure::ParsedPacketBuffer::getPacketBuffer ( ) const

Returns the contains packet buffer of the parsed packet buffer.

Returns
The packet buffer, contained in the parsed packet buffer.

Definition at line 47 of file ParsedPacketBuffer.cpp.

void sick::datastructure::ParsedPacketBuffer::setPacketBuffer ( const sick::datastructure::PacketBuffer packet_buffer)

Sets the packet buffer in the parsed packet buffer.

Parameters
packet_bufferThe new packet buffer for the parsed packet buffer.

Definition at line 52 of file ParsedPacketBuffer.cpp.

static bool sick::datastructure::ParsedPacketBuffer::sortForIncreasingOffset ( const ParsedPacketBuffer ppb1,
const ParsedPacketBuffer ppb2 
)
inlinestatic

Static function to sort ParsedPacketBuffers.

Parameters
ppb1First ParsedPacketBuffer.
ppb2Second ParsedPacketBuffer.
Returns
If first is smaller then second.

Definition at line 76 of file ParsedPacketBuffer.h.

Member Data Documentation

sick::datastructure::DatagramHeader sick::datastructure::ParsedPacketBuffer::m_datagram_header
private

Parsed datagramheader.

Definition at line 103 of file ParsedPacketBuffer.h.

sick::datastructure::PacketBuffer sick::datastructure::ParsedPacketBuffer::m_packet_buffer
private

PacketBuffer.

Definition at line 98 of file ParsedPacketBuffer.h.


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


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