ParseTypeCodeData.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_PARSETYPECODEDATA_H
00036 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSETYPECODEDATA_H
00037 
00038 #include <sick_safetyscanners/datastructure/Data.h>
00039 #include <sick_safetyscanners/datastructure/PacketBuffer.h>
00040 #include <sick_safetyscanners/datastructure/TypeCode.h>
00041 
00042 #include <sick_safetyscanners/data_processing/ReadWriteHelper.h>
00043 
00044 namespace sick {
00045 
00046 namespace data_processing {
00047 
00048 
00052 class ParseTypeCodeData
00053 {
00054 public:
00058   ParseTypeCodeData();
00059 
00068   bool parseTCPSequence(const datastructure::PacketBuffer& buffer,
00069                         datastructure::TypeCode& type_code) const;
00070 
00071 private:
00072   std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
00073   uint8_t readInterfaceType(const uint8_t*& data_ptr) const;
00074   float readMaxRange(const uint8_t*& data_ptr) const;
00075 };
00076 
00077 } // namespace data_processing
00078 } // namespace sick
00079 
00080 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSETYPECODEDATA_H


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