TypeCode.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_DATASTRUCTURE_TYPECODE_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_TYPECODE_H
37 
38 #include <iostream>
39 
40 
41 namespace sick {
42 namespace datastructure {
43 
45 {
50 };
51 
53 {
56 };
57 
58 
62 class TypeCode
63 {
64 public:
68  TypeCode();
69 
75  std::string getTypeCode() const;
81  void setTypeCode(const std::string& type_code);
87  uint8_t getInterfaceType() const;
93  void setInterfaceType(const uint8_t& interface_type);
94 
100  float getMaxRange() const;
106  void setMaxRange(const float& max_distance);
107 
108 private:
109  std::string m_type_code;
111  float m_max_range;
112 };
113 
114 
115 } // namespace datastructure
116 } // namespace sick
117 
118 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_TYPECODE_H
sick::datastructure::TypeCode::getInterfaceType
uint8_t getInterfaceType() const
Gets the interface type for the scanner.
Definition: TypeCode.cpp:51
sick::datastructure::E_NONSAFE_ETHERNET
@ E_NONSAFE_ETHERNET
Definition: TypeCode.h:49
sick
Definition: ApplicationNameVariableCommand.h:43
sick::datastructure::TypeCode::setMaxRange
void setMaxRange(const float &max_distance)
Sets the max range for the scanner.
Definition: TypeCode.cpp:66
sick::datastructure::E_ETHERNET_IP
@ E_ETHERNET_IP
Definition: TypeCode.h:47
sick::datastructure::TypeCode::setTypeCode
void setTypeCode(const std::string &type_code)
Sets the type code for the scanner.
Definition: TypeCode.cpp:47
sick::datastructure::e_interface_type
e_interface_type
Definition: TypeCode.h:44
sick::datastructure::TypeCode::m_interface_type
uint8_t m_interface_type
Definition: TypeCode.h:110
sick::datastructure::TypeCode::setInterfaceType
void setInterfaceType(const uint8_t &interface_type)
Sets the interface type for the scanner.
Definition: TypeCode.cpp:56
sick::datastructure::E_LONG_RANGE
@ E_LONG_RANGE
Definition: TypeCode.h:55
sick::datastructure::e_ranges
e_ranges
Definition: TypeCode.h:52
sick::datastructure::TypeCode::getTypeCode
std::string getTypeCode() const
Gets the type code for the scanner.
Definition: TypeCode.cpp:42
sick::datastructure::E_NORMAL_RANGE
@ E_NORMAL_RANGE
Definition: TypeCode.h:54
sick::datastructure::TypeCode::getMaxRange
float getMaxRange() const
Gets the max range for the scanner.
Definition: TypeCode.cpp:61
sick::datastructure::TypeCode
Class containing the type code of a laser scanner.
Definition: TypeCode.h:62
sick::datastructure::E_EFIPRO
@ E_EFIPRO
Definition: TypeCode.h:46
sick::datastructure::TypeCode::m_type_code
std::string m_type_code
Definition: TypeCode.h:109
sick::datastructure::TypeCode::TypeCode
TypeCode()
Constructor of the type code.
Definition: TypeCode.cpp:40
sick::datastructure::TypeCode::m_max_range
float m_max_range
Definition: TypeCode.h:111
sick::datastructure::E_PROFINET
@ E_PROFINET
Definition: TypeCode.h:48


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Jun 21 2024 02:40:51