35 #ifndef SICK_SAFETYSCANNERS_DATASTRUCTURE_PACKETBUFFER_H    36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_PACKETBUFFER_H    43 #include <boost/array.hpp>    44 #include <boost/asio.hpp>    51 namespace datastructure {
    92   PacketBuffer(
const ArrayBuffer& buffer, 
const size_t& length);
   110   void setBuffer(
const VectorBuffer& buffer);
   117   void setBuffer(
const ArrayBuffer& buffer, 
const size_t& length);
   133 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_PACKETBUFFER_H boost::array< uint8_t, MAXSIZE > ArrayBuffer
Typedef for an arraybuffer which can be read from the sensor. 
 
A packetbuffer for the raw data from the sensor. 
 
void setBuffer(const VectorBuffer &buffer)
Setter for the PacketBuffer. 
 
const VectorBuffer & getBuffer() const 
Getter to return the VectorBuffer saved in the PacketBuffer. 
 
static uint32_t getMaxSize()
Returns defined maximum size of PacketBuffer. 
 
size_t getLength() const 
Returns length of the current PacketBuffer. 
 
const uint32_t MAXSIZE
MAXSIZE of the packetbuffer. 
 
std::vector< uint8_t > VectorBuffer
Typedef for a vector buffer, to sort the incoming packets. 
 
PacketBuffer()
Constructor of PacketBuffer.