GeneralSystemState.cpp
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 
36 
37 namespace sick {
38 namespace datastructure {
39 
41  : m_is_empty(false)
42 {
43 }
44 
46 {
47  return m_run_mode_active;
48 }
49 
50 void GeneralSystemState::setRunModeActive(bool run_mode_active)
51 {
52  m_run_mode_active = run_mode_active;
53 }
54 
56 {
57  return m_standby_mode_active;
58 }
59 
60 void GeneralSystemState::setStandbyModeActive(bool standby_mode_active)
61 {
62  m_standby_mode_active = standby_mode_active;
63 }
64 
66 {
68 }
69 
70 void GeneralSystemState::setContaminationWarning(bool contamination_warning)
71 {
72  m_contamination_warning = contamination_warning;
73 }
74 
76 {
77  return m_contamination_error;
78 }
79 
80 void GeneralSystemState::setContaminationError(bool contamination_error)
81 {
82  m_contamination_error = contamination_error;
83 }
84 
86 {
88 }
89 
90 void GeneralSystemState::setReferenceContourStatus(bool reference_contour_status)
91 {
92  m_reference_contour_status = reference_contour_status;
93 }
94 
96 {
97  return m_manipulation_status;
98 }
99 
100 void GeneralSystemState::setManipulationStatus(bool manipulation_status)
101 {
102  m_manipulation_status = manipulation_status;
103 }
104 
106 {
108 }
109 
110 void GeneralSystemState::setSafeCutOffPathvector(const std::vector<bool>& safe_cut_off_path_vector)
111 {
112  m_safe_cut_off_path_vector = safe_cut_off_path_vector;
113 }
114 
116 {
118 }
119 
121  const std::vector<bool>& non_safe_cut_off_path_vector)
122 {
123  m_non_safe_cut_off_path_vector = non_safe_cut_off_path_vector;
124 }
125 
127 {
129 }
130 
132  const std::vector<bool>& reset_required_cut_off_path_vector)
133 {
134  m_reset_required_cut_off_path_vector = reset_required_cut_off_path_vector;
135 }
136 
138 {
140 }
141 
143  const uint8_t& current_monitoring_case_no_table_1)
144 {
145  m_current_monitoring_case_no_table_1 = current_monitoring_case_no_table_1;
146 }
147 
149 {
151 }
152 
154  const uint8_t& current_monitoring_case_no_table_2)
155 {
156  m_current_monitoring_case_no_table_2 = current_monitoring_case_no_table_2;
157 }
158 
160 {
162 }
163 
165  const uint8_t& current_monitoring_case_no_table_3)
166 {
167  m_current_monitoring_case_no_table_3 = current_monitoring_case_no_table_3;
168 }
169 
171 {
173 }
174 
176  const uint8_t& current_monitoring_case_no_table_4)
177 {
178  m_current_monitoring_case_no_table_4 = current_monitoring_case_no_table_4;
179 }
180 
182 {
183  return m_application_error;
184 }
185 
186 void GeneralSystemState::setApplicationError(bool application_error)
187 {
188  m_application_error = application_error;
189 }
190 
192 {
193  return m_device_error;
194 }
195 
196 void GeneralSystemState::setDeviceError(bool device_error)
197 {
198  m_device_error = device_error;
199 }
200 
202 {
203  return m_is_empty;
204 }
205 
207 {
208  m_is_empty = is_empty;
209 }
210 
211 
212 } // namespace datastructure
213 } // namespace sick
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
GeneralSystemState.h
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::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