Public Types | Public Member Functions | Static Public Member Functions | Private Attributes
sick::datastructure::PacketBuffer Class Reference

A packetbuffer for the raw data from the sensor. More...

#include <PacketBuffer.h>

List of all members.

Public Types

typedef boost::array< uint8_t,
MAXSIZE
ArrayBuffer
 Typedef for an arraybuffer which can be read from the sensor.
typedef std::vector< uint8_t > VectorBuffer
 Typedef for a vector buffer, to sort the incoming packets.

Public Member Functions

const VectorBuffergetBuffer () const
 Getter to return the VectorBuffer saved in the PacketBuffer.
size_t getLength () const
 Returns length of the current PacketBuffer.
 PacketBuffer ()
 Constructor of PacketBuffer.
 PacketBuffer (const VectorBuffer &buffer)
 Constructor of PacketBuffer.
 PacketBuffer (const ArrayBuffer &buffer, const size_t &length)
 Constructor of PacketBuffer.
void setBuffer (const VectorBuffer &buffer)
 Setter for the PacketBuffer.
void setBuffer (const ArrayBuffer &buffer, const size_t &length)
 Setter for the PacketBuffer.

Static Public Member Functions

static uint32_t getMaxSize ()
 Returns defined maximum size of PacketBuffer.

Private Attributes

VectorBuffer m_buffer

Detailed Description

A packetbuffer for the raw data from the sensor.

Definition at line 61 of file PacketBuffer.h.


Member Typedef Documentation

Typedef for an arraybuffer which can be read from the sensor.

Definition at line 67 of file PacketBuffer.h.

Typedef for a vector buffer, to sort the incoming packets.

Definition at line 71 of file PacketBuffer.h.


Constructor & Destructor Documentation

Constructor of PacketBuffer.

Definition at line 41 of file PacketBuffer.cpp.

Constructor of PacketBuffer.

No explicit tag used to allow implicit conversion from different inputs types.

Parameters:
bufferVectorbuffer to set for the PacketBuffer.

Definition at line 43 of file PacketBuffer.cpp.

sick::datastructure::PacketBuffer::PacketBuffer ( const ArrayBuffer buffer,
const size_t &  length 
)

Constructor of PacketBuffer.

Parameters:
bufferArraybuffer to set for the PacketBuffer.
lengthLength of the array.

Definition at line 48 of file PacketBuffer.cpp.


Member Function Documentation

Getter to return the VectorBuffer saved in the PacketBuffer.

Returns:
VectorBuffer

Definition at line 53 of file PacketBuffer.cpp.

Returns length of the current PacketBuffer.

Returns:
Length.

Definition at line 70 of file PacketBuffer.cpp.

static uint32_t sick::datastructure::PacketBuffer::getMaxSize ( ) [inline, static]

Returns defined maximum size of PacketBuffer.

Returns:
Maximum size of PacketBuffer.

Definition at line 98 of file PacketBuffer.h.

Setter for the PacketBuffer.

Parameters:
bufferInput VectorBuffer to save.

Definition at line 58 of file PacketBuffer.cpp.

void sick::datastructure::PacketBuffer::setBuffer ( const ArrayBuffer buffer,
const size_t &  length 
)

Setter for the PacketBuffer.

Parameters:
bufferInput ArrayBuffer to save.
lengthLength of input ArrayBuffer.

Definition at line 64 of file PacketBuffer.cpp.


Member Data Documentation

Definition at line 127 of file PacketBuffer.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