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 #include <sick_safetyscanners/datastructure/TypeCode.h> 00036 00037 namespace sick { 00038 namespace datastructure { 00039 00040 TypeCode::TypeCode() {} 00041 00042 uint8_t TypeCode::getInterfaceType() const 00043 { 00044 return m_interface_type; 00045 } 00046 00047 void TypeCode::setInterfaceType(uint8_t interface_type) 00048 { 00049 m_interface_type = interface_type; 00050 } 00051 00052 float TypeCode::getMaxRange() const 00053 { 00054 return m_max_range; 00055 } 00056 00057 void TypeCode::setMaxRange(float max_distance) 00058 { 00059 m_max_range = max_distance; 00060 } 00061 00062 00063 } // namespace datastructure 00064 } // namespace sick