ParseDeviceName.h
Go to the documentation of this file.
1 // this is for emacs file handling -*- mode: c++; indent-tabs-mode: nil -*-
2 
3 // -- BEGIN LICENSE BLOCK ----------------------------------------------
4 
24 // -- END LICENSE BLOCK ------------------------------------------------
25 
26 //----------------------------------------------------------------------
33 //----------------------------------------------------------------------
34 
35 #ifndef SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEDEVICENAME_H
36 #define SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEDEVICENAME_H
37 
40 
42 
43 #include <string>
44 
45 namespace sick {
46 
47 namespace data_processing {
48 
49 
54 {
55 public:
60 
69  bool parseTCPSequence(const datastructure::PacketBuffer& buffer, std::string& device_name) const;
70 
71 private:
72  std::shared_ptr<sick::data_processing::ReadWriteHelper> m_reader_ptr;
73  std::string readDeviceName(const uint8_t*& data_ptr) const;
74 };
75 
76 } // namespace data_processing
77 } // namespace sick
78 
79 #endif // SICK_SAFETYSCANNERS_DATA_PROCESSING_PARSEDEVICENAME_H
bool parseTCPSequence(const datastructure::PacketBuffer &buffer, std::string &device_name) const
Parses a tcp sequence to read the device name of the sensor.
std::string readDeviceName(const uint8_t *&data_ptr) const
A packetbuffer for the raw data from the sensor.
Definition: PacketBuffer.h:61
std::shared_ptr< sick::data_processing::ReadWriteHelper > m_reader_ptr
Parser to read the device name from a tcp sequence.
ParseDeviceName()
Constructor of the parser.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Thu May 9 2019 02:41:08