MonitoringCaseData.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_MONITORINGCASEDATA_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_MONITORINGCASEDATA_H
37 
38 #include <iostream>
39 #include <vector>
40 
41 namespace sick {
42 namespace datastructure {
43 
44 
49 {
50 public:
55 
61  bool getIsValid() const;
62 
68  void setIsValid(bool is_valid);
69 
70 
76  uint16_t getMonitoringCaseNumber() const;
77 
83  void setMonitoringCaseNumber(const uint16_t& monitoring_case_number);
84 
90  std::vector<uint16_t> getFieldIndices() const;
91 
97  void setFieldIndices(const std::vector<uint16_t>& field_indices);
98 
104  std::vector<bool> getFieldsValid() const;
105 
111  void setFieldsValid(const std::vector<bool>& fields_valid);
112 
113 private:
116  std::vector<uint16_t> m_field_indices;
117  std::vector<bool> m_fields_valid;
118 };
119 
120 
121 } // namespace datastructure
122 } // namespace sick
123 
124 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_MONITORINGCASEDATA_H
void setFieldsValid(const std::vector< bool > &fields_valid)
Sets if the fields are valid.
bool getIsValid() const
Returns if the received monitoring case data is valid.
std::vector< bool > getFieldsValid() const
Returns if the fields are configured and valid.
Stores the data for the different monitoring cases.
MonitoringCaseData()
The constructor of the monitoring case data.
void setMonitoringCaseNumber(const uint16_t &monitoring_case_number)
Sets the monitoring case number.
std::vector< uint16_t > getFieldIndices() const
Returns the field indices.
void setIsValid(bool is_valid)
Sets if the monitoring case data is valid.
uint16_t getMonitoringCaseNumber() const
Returns the number of the monitoring case.
void setFieldIndices(const std::vector< uint16_t > &field_indices)
Sets the field indices.


sick_safetyscanners
Author(s): Lennart Puck
autogenerated on Fri Apr 2 2021 02:45:41