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_DATASTRUCTURE_MONITORINGCASEDATA_H 00036 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_MONITORINGCASEDATA_H 00037 00038 #include <iostream> 00039 #include <vector> 00040 00041 namespace sick { 00042 namespace datastructure { 00043 00044 00048 class MonitoringCaseData 00049 { 00050 public: 00054 MonitoringCaseData(); 00055 00061 bool getIsValid() const; 00062 00068 void setIsValid(const bool is_valid); 00069 00070 00076 uint16_t getMonitoringCaseNumber() const; 00077 00083 void setMonitoringCaseNumber(const uint16_t monitoring_case_number); 00084 00090 std::vector<uint16_t> getFieldIndices() const; 00091 00097 void setFieldIndices(const std::vector<uint16_t>& field_indices); 00098 00104 std::vector<bool> getFieldsValid() const; 00105 00111 void setFieldsValid(const std::vector<bool>& fields_valid); 00112 00113 private: 00114 bool m_is_valid; 00115 uint16_t m_monitoring_case_number; 00116 std::vector<uint16_t> m_field_indices; 00117 std::vector<bool> m_fields_valid; 00118 }; 00119 00120 00121 } // namespace datastructure 00122 } // namespace sick 00123 00124 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_MONITORINGCASEDATA_H