GeneralSystemState.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_GENERALSYSTEMSTATE_H
36 #define SICK_SAFETYSCANNERS_DATASTRUCTURE_GENERALSYSTEMSTATE_H
37 
38 #include <stdint.h>
39 #include <vector>
40 
41 namespace sick {
42 namespace datastructure {
43 
50 {
51 public:
56 
61  bool getRunModeActive() const;
66  void setRunModeActive(bool run_mode_active);
67 
72  bool getStandbyModeActive() const;
73 
78  void setStandbyModeActive(bool standby_mode_active);
79 
84  bool getContaminationWarning() const;
85 
90  void setContaminationWarning(bool contamination_warning);
91 
96  bool getContaminationError() const;
97 
102  void setContaminationError(bool contamination_error);
103 
108  bool getReferenceContourStatus() const;
109 
114  void setReferenceContourStatus(bool reference_contour_status);
115 
120  bool getManipulationStatus() const;
121 
126  void setManipulationStatus(bool manipulation_status);
127 
132  std::vector<bool> getSafeCutOffPathVector() const;
133 
138  void setSafeCutOffPathvector(const std::vector<bool>& safe_cut_off_path_vector);
139 
144  std::vector<bool> getNonSafeCutOffPathVector() const;
145 
150  void setNonSafeCutOffPathVector(const std::vector<bool>& non_safe_cut_off_path_vector);
151 
156  std::vector<bool> getResetRequiredCutOffPathVector() const;
157 
162  void
163  setResetRequiredCutOffPathVector(const std::vector<bool>& reset_required_cut_off_path_vector);
164 
169  uint8_t getCurrentMonitoringCaseNoTable1() const;
170 
175  void setCurrentMonitoringCaseNoTable1(const uint8_t& current_monitoring_case_no_table_1);
176 
181  uint8_t getCurrentMonitoringCaseNoTable2() const;
182 
187  void setCurrentMonitoringCaseNoTable2(const uint8_t& current_monitoring_case_no_table_2);
188 
193  uint8_t getCurrentMonitoringCaseNoTable3() const;
194 
199  void setCurrentMonitoringCaseNoTable3(const uint8_t& current_monitoring_case_no_table_3);
200 
205  uint8_t getCurrentMonitoringCaseNoTable4() const;
206 
211  void setCurrentMonitoringCaseNoTable4(const uint8_t& current_monitoring_case_no_table_4);
212 
217  bool getApplicationError() const;
218 
223  void setApplicationError(bool application_error);
224 
229  bool getDeviceError() const;
230 
235  void setDeviceError(bool device_error);
236 
237 
242  bool isEmpty() const;
243 
248  void setIsEmpty(bool is_empty);
249 
250 private:
258 
259  std::vector<bool> m_safe_cut_off_path_vector;
262 
267 
270 };
271 
272 } // namespace datastructure
273 } // namespace sick
274 
275 #endif // SICK_SAFETYSCANNERS_DATASTRUCTURE_GENERALSYSTEMSTATE_H
sick::datastructure::GeneralSystemState::m_is_empty
bool m_is_empty
Definition: GeneralSystemState.h:251
sick::datastructure::GeneralSystemState::setContaminationWarning
void setContaminationWarning(bool contamination_warning)
Set if a contamination warning exists.
Definition: GeneralSystemState.cpp:70
sick::datastructure::GeneralSystemState::setDeviceError
void setDeviceError(bool device_error)
Set if a device error exists.
Definition: GeneralSystemState.cpp:196
sick::datastructure::GeneralSystemState::getCurrentMonitoringCaseNoTable2
uint8_t getCurrentMonitoringCaseNoTable2() const
Returns the current monitor case table 2.
Definition: GeneralSystemState.cpp:148
sick
Definition: ApplicationNameVariableCommand.h:43
sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable1
void setCurrentMonitoringCaseNoTable1(const uint8_t &current_monitoring_case_no_table_1)
Sets the current monitoring case table 1.
Definition: GeneralSystemState.cpp:142
sick::datastructure::GeneralSystemState::setResetRequiredCutOffPathVector
void setResetRequiredCutOffPathVector(const std::vector< bool > &reset_required_cut_off_path_vector)
Sets the reset state for all cut-off paths.
Definition: GeneralSystemState.cpp:131
sick::datastructure::GeneralSystemState::setNonSafeCutOffPathVector
void setNonSafeCutOffPathVector(const std::vector< bool > &non_safe_cut_off_path_vector)
Sets the state of all non-safe cut-off paths.
Definition: GeneralSystemState.cpp:120
sick::datastructure::GeneralSystemState::m_current_monitoring_case_no_table_2
uint8_t m_current_monitoring_case_no_table_2
Definition: GeneralSystemState.h:264
sick::datastructure::GeneralSystemState::getRunModeActive
bool getRunModeActive() const
Returns if run mode is active.
Definition: GeneralSystemState.cpp:45
sick::datastructure::GeneralSystemState::m_device_error
bool m_device_error
Definition: GeneralSystemState.h:269
sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable2
void setCurrentMonitoringCaseNoTable2(const uint8_t &current_monitoring_case_no_table_2)
Sets the current monitoring case table 2.
Definition: GeneralSystemState.cpp:153
sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable3
void setCurrentMonitoringCaseNoTable3(const uint8_t &current_monitoring_case_no_table_3)
Sets the current monitoring case table 3.
Definition: GeneralSystemState.cpp:164
sick::datastructure::GeneralSystemState::setSafeCutOffPathvector
void setSafeCutOffPathvector(const std::vector< bool > &safe_cut_off_path_vector)
Sets the state of all safe cut-off paths.
Definition: GeneralSystemState.cpp:110
sick::datastructure::GeneralSystemState::getContaminationWarning
bool getContaminationWarning() const
Returns if a contamination warning is exists.
Definition: GeneralSystemState.cpp:65
sick::datastructure::GeneralSystemState::m_current_monitoring_case_no_table_3
uint8_t m_current_monitoring_case_no_table_3
Definition: GeneralSystemState.h:265
sick::datastructure::GeneralSystemState::getNonSafeCutOffPathVector
std::vector< bool > getNonSafeCutOffPathVector() const
Returns the state of all non-safe cut-off paths.
Definition: GeneralSystemState.cpp:115
sick::datastructure::GeneralSystemState::getCurrentMonitoringCaseNoTable4
uint8_t getCurrentMonitoringCaseNoTable4() const
Returns the current monitor case table 4.
Definition: GeneralSystemState.cpp:170
sick::datastructure::GeneralSystemState::getManipulationStatus
bool getManipulationStatus() const
Returns if the manipulation status is set to true.
Definition: GeneralSystemState.cpp:95
sick::datastructure::GeneralSystemState::setContaminationError
void setContaminationError(bool contamination_error)
Set if a contamination error exists.
Definition: GeneralSystemState.cpp:80
sick::datastructure::GeneralSystemState::setManipulationStatus
void setManipulationStatus(bool manipulation_status)
Set the manipulation status.
Definition: GeneralSystemState.cpp:100
sick::datastructure::GeneralSystemState::getReferenceContourStatus
bool getReferenceContourStatus() const
Returns if the reference contour status is true.
Definition: GeneralSystemState.cpp:85
sick::datastructure::GeneralSystemState::getStandbyModeActive
bool getStandbyModeActive() const
Returns if the standby mode is active.
Definition: GeneralSystemState.cpp:55
sick::datastructure::GeneralSystemState::getSafeCutOffPathVector
std::vector< bool > getSafeCutOffPathVector() const
Returns the state for all safe cut off paths.
Definition: GeneralSystemState.cpp:105
sick::datastructure::GeneralSystemState::setStandbyModeActive
void setStandbyModeActive(bool standby_mode_active)
Setter for standby mode.
Definition: GeneralSystemState.cpp:60
sick::datastructure::GeneralSystemState::m_contamination_warning
bool m_contamination_warning
Definition: GeneralSystemState.h:254
sick::datastructure::GeneralSystemState::setCurrentMonitoringCaseNoTable4
void setCurrentMonitoringCaseNoTable4(const uint8_t &current_monitoring_case_no_table_4)
Sets the current monitoring case table 4.
Definition: GeneralSystemState.cpp:175
sick::datastructure::GeneralSystemState::m_run_mode_active
bool m_run_mode_active
Definition: GeneralSystemState.h:252
sick::datastructure::GeneralSystemState::getApplicationError
bool getApplicationError() const
Return if an application error exists.
Definition: GeneralSystemState.cpp:181
sick::datastructure::GeneralSystemState::m_application_error
bool m_application_error
Definition: GeneralSystemState.h:268
sick::datastructure::GeneralSystemState::m_standby_mode_active
bool m_standby_mode_active
Definition: GeneralSystemState.h:253
sick::datastructure::GeneralSystemState::getContaminationError
bool getContaminationError() const
Returns if a contamination error exists.
Definition: GeneralSystemState.cpp:75
sick::datastructure::GeneralSystemState::setRunModeActive
void setRunModeActive(bool run_mode_active)
Setter for run mode.
Definition: GeneralSystemState.cpp:50
sick::datastructure::GeneralSystemState::m_safe_cut_off_path_vector
std::vector< bool > m_safe_cut_off_path_vector
Definition: GeneralSystemState.h:259
sick::datastructure::GeneralSystemState::m_reset_required_cut_off_path_vector
std::vector< bool > m_reset_required_cut_off_path_vector
Definition: GeneralSystemState.h:261
sick::datastructure::GeneralSystemState::GeneralSystemState
GeneralSystemState()
Constructor of GeneralSystemState, creates empty instance.
Definition: GeneralSystemState.cpp:40
sick::datastructure::GeneralSystemState::m_contamination_error
bool m_contamination_error
Definition: GeneralSystemState.h:255
sick::datastructure::GeneralSystemState::setIsEmpty
void setIsEmpty(bool is_empty)
Set if general system state has been enabled.
Definition: GeneralSystemState.cpp:206
sick::datastructure::GeneralSystemState::getResetRequiredCutOffPathVector
std::vector< bool > getResetRequiredCutOffPathVector() const
Returns if a cut-off path has to be reset.
Definition: GeneralSystemState.cpp:126
sick::datastructure::GeneralSystemState::isEmpty
bool isEmpty() const
Return if general system state has been enabled.
Definition: GeneralSystemState.cpp:201
sick::datastructure::GeneralSystemState
The GeneralSystemState class. It includes a summary of the current system state, the state of the saf...
Definition: GeneralSystemState.h:49
sick::datastructure::GeneralSystemState::getDeviceError
bool getDeviceError() const
Return if a device error exists.
Definition: GeneralSystemState.cpp:191
sick::datastructure::GeneralSystemState::m_non_safe_cut_off_path_vector
std::vector< bool > m_non_safe_cut_off_path_vector
Definition: GeneralSystemState.h:260
sick::datastructure::GeneralSystemState::m_current_monitoring_case_no_table_1
uint8_t m_current_monitoring_case_no_table_1
Definition: GeneralSystemState.h:263
sick::datastructure::GeneralSystemState::m_current_monitoring_case_no_table_4
uint8_t m_current_monitoring_case_no_table_4
Definition: GeneralSystemState.h:266
sick::datastructure::GeneralSystemState::m_manipulation_status
bool m_manipulation_status
Definition: GeneralSystemState.h:257
sick::datastructure::GeneralSystemState::setReferenceContourStatus
void setReferenceContourStatus(bool reference_contour_status)
Set the reference contour status.
Definition: GeneralSystemState.cpp:90
sick::datastructure::GeneralSystemState::setApplicationError
void setApplicationError(bool application_error)
Set if an application error exists.
Definition: GeneralSystemState.cpp:186
sick::datastructure::GeneralSystemState::getCurrentMonitoringCaseNoTable1
uint8_t getCurrentMonitoringCaseNoTable1() const
Returns the current monitor case table 1.
Definition: GeneralSystemState.cpp:137
sick::datastructure::GeneralSystemState::getCurrentMonitoringCaseNoTable3
uint8_t getCurrentMonitoringCaseNoTable3() const
Returns the current monitor case table 3.
Definition: GeneralSystemState.cpp:159
sick::datastructure::GeneralSystemState::m_reference_contour_status
bool m_reference_contour_status
Definition: GeneralSystemState.h:256


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