rad  5.1.0
actionsStd.hpp
Go to the documentation of this file.
1 
10 #if 0
11 #ifndef EXCIISERVER_ACTION_STD_HPP
12 #define EXCIISERVER_ACTION_STD_HPP
13 
15 #include <rad/application.hpp>
16 
17 #include <rad/signal.hpp>
18 #include <rad/trsHealth.hpp>
19 #include <rad/smAdapter.hpp>
20 
21 #include <string>
22 
23 namespace exciiserver {
24 
25 class DataContext;
26 
50 class ActionsStd : public rad::ConfigurableActionGroup {
51  public:
59  ActionsStd(rad::Application& appl, DataContext& data);
60 
65  void Initialize() override;
66 
73  void Configure(const std::vector<std::string>& keys) override;
74 
82  void GetState(scxml4cpp::Context* c);
83 
91  void GetStatus(scxml4cpp::Context* c);
92 
100  void GetVersion(scxml4cpp::Context* c);
101 
108  void Stop(scxml4cpp::Context* c);
109 
117  void Init(scxml4cpp::Context* c);
118 
125  void Enable(scxml4cpp::Context* c);
126 
133  void Disable(scxml4cpp::Context* c);
134 
141  void Reset(scxml4cpp::Context* c);
142 
150  void SetLogLevel(scxml4cpp::Context* c);
151 
159  void Exit(scxml4cpp::Context* c);
160 
167  void ExitNoReply(scxml4cpp::Context* c);
168 
177  void TrsHealth(scxml4cpp::Context* c);
178 
179  ActionsStd(const ActionsStd&) = delete;
180  ActionsStd& operator=(const ActionsStd&) = delete;
181 
182  private:
183  rad::Application& m_appl;
184  DataContext& m_data;
185  rad::Signal m_signal;
186  rad::TrsHealth m_trs_health;
187 };
188 
189 } // namespace exciiserver
190 
191 #endif // EXCIISERVER_ACTION_STD_HPP
192 #endif
Application class header file.
Definition: application.hpp:48
Definition: configurableActionGroup.hpp:23
Definition: signal.hpp:22
Adapter for ptpmond's TRS Health status to the state machine.
Definition: trsHealth.hpp:40
Definition: Context.h:58
ConfigurableActionGroup class header file.
Definition: actionMgr.cpp:25
Signal class.
SMAdapter class header file.
Receiver of TRS health status updates.