ParseFieldHeaderData.h
Go to the documentation of this file.
00001 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
00002 
00003 // -- BEGIN LICENSE BLOCK ----------------------------------------------
00004 
00024 // -- END LICENSE BLOCK ------------------------------------------------
00025 
00026 //----------------------------------------------------------------------
00033 //----------------------------------------------------------------------
00034 
00035 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H
00036 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H
00037 
00038 #include <sick_safetyscanners/datastructure/Data.h>
00039 #include <sick_safetyscanners/datastructure/FieldData.h>
00040 #include <sick_safetyscanners/datastructure/PacketBuffer.h>
00041 
00042 #include <sick_safetyscanners/data_processing/ReadWriteHelper.h>
00043 
00044 namespace sick {
00045 
00046 namespace data_processing {
00047 
00048 
00052 class ParseFieldHeaderData
00053 {
00054 public:
00058   ParseFieldHeaderData();
00059 
00068   bool parseTCPSequence(const datastructure::PacketBuffer& buffer,
00069                         datastructure::FieldData& field_data) const;
00070 
00071 private:
00072   std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
00073 
00074   bool isValid(const uint8_t*& data_ptr) const;
00075   void setFieldType(const uint8_t*& data_ptr, datastructure::FieldData& field_data) const;
00076   uint8_t readFieldType(const uint8_t*& data_ptr) const;
00077   uint16_t readSetIndex(const uint8_t*& data_ptr) const;
00078 };
00079 
00080 } // namespace data_processing
00081 } // namespace sick
00082 
00083 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEFIELDHEADERDATA_H


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Tue May 7 2019 03:27:36