Motorcortex Core  version: 2.7.6
sm_errorhandlebase.h
1 /*
2  * Developer : Alexey Zakharov (alexey.zakharov@vectioneer.com)
3  * All rights reserved. Copyright (c) 2018 VECTIONEER.
4  */
5 
6 #ifndef SM_ERRORHANDLEBASE_H
7 #define SM_ERRORHANDLEBASE_H
8 
9 #include "sm_errorhelper.h"
10 
11 namespace mcx {
12 
13 namespace parameter_server {
14 class Parameter;
15 }
16 
17 namespace state_machine {
18 
20 public:
21  virtual bool acknowledge(bool warnings_only) = 0;
22 
23  virtual bool warning(const Error& error) = 0;
24 
25  virtual bool forcedDisengaged(const Error& error) = 0;
26 
27  virtual bool shutdown(const Error& error) = 0;
28 
29  virtual bool emergencyStop(const Error& error) = 0;
30 
31  virtual bool empty() = 0;
32 
33  virtual bool hasError(const Error& error) = 0;
34 
35  virtual bool hasErrorLevel(MotorcortexErrorLevel error_level) = 0;
36 
37  virtual signal_monitor::SignalMonitorBase* getSignalMonitor() = 0;
38 };
39 
40 } // namespace state_machine
41 
42 } // namespace mcx
43 
44 #endif /* SM_ERRORHANDLEBASE_H */
mcx::signal_monitor::SignalMonitorBase
Definition: sg_monitorbase.h:31
mcx::signal_monitor::SignalId
Definition: sg_signalid.h:25
mcx::state_machine::ErrorHandleBase
Definition: sm_errorhandlebase.h:19