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/MonitoringCaseData.h> 00036 00037 namespace sick { 00038 namespace datastructure { 00039 00040 MonitoringCaseData::MonitoringCaseData() {} 00041 00042 bool MonitoringCaseData::getIsValid() const 00043 { 00044 return m_is_valid; 00045 } 00046 00047 void MonitoringCaseData::setIsValid(bool is_valid) 00048 { 00049 m_is_valid = is_valid; 00050 } 00051 00052 uint16_t MonitoringCaseData::getMonitoringCaseNumber() const 00053 { 00054 return m_monitoring_case_number; 00055 } 00056 00057 void MonitoringCaseData::setMonitoringCaseNumber(const uint16_t monitoring_case_number) 00058 { 00059 m_monitoring_case_number = monitoring_case_number; 00060 } 00061 00062 std::vector<uint16_t> MonitoringCaseData::getFieldIndices() const 00063 { 00064 return m_field_indices; 00065 } 00066 00067 void MonitoringCaseData::setFieldIndices(const std::vector<uint16_t>& field_indices) 00068 { 00069 m_field_indices = field_indices; 00070 } 00071 00072 std::vector<bool> MonitoringCaseData::getFieldsValid() const 00073 { 00074 return m_fields_valid; 00075 } 00076 00077 void MonitoringCaseData::setFieldsValid(const std::vector<bool>& fields_valid) 00078 { 00079 m_fields_valid = fields_valid; 00080 } 00081 00082 } // namespace datastructure 00083 } // namespace sick