ifw-sup
3.0.0-pre3
|
#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data, SubsysFacade &subsys_facade) | |
void | notifyEvent (scxml4cpp::Event *e) |
void | notifyStatus (std::list< scxml4cpp::State * > &status) |
void | GetState (scxml4cpp::Context *c) |
ActionsStd. More... | |
void | GetStatus (scxml4cpp::Context *c) |
void | GetVersion (scxml4cpp::Context *c) |
void | SubsysStatus (scxml4cpp::Context *c) |
void | SubsysNames (scxml4cpp::Context *c) |
void | Stop (scxml4cpp::Context *c) |
void | Init (scxml4cpp::Context *c) |
void | Enable (scxml4cpp::Context *c) |
void | Disable (scxml4cpp::Context *c) |
void | Reset (scxml4cpp::Context *c) |
void | Config (scxml4cpp::Context *c) |
void | GetConfig (scxml4cpp::Context *c) |
void | SetConfig (scxml4cpp::Context *c) |
void | SetObMode (scxml4cpp::Context *c) |
void | SetOpMode (scxml4cpp::Context *c) |
void | Setup (scxml4cpp::Context *c) |
void | SetLogLevel (scxml4cpp::Context *c) |
void | Exit (scxml4cpp::Context *c) |
void | ExitNoReply (scxml4cpp::Context *c) |
void | SignalUsr1 (scxml4cpp::Context *c) |
void | Ignore (scxml4cpp::Context *c) |
Implementation of the Ignore action. More... | |
void | StopIgn (scxml4cpp::Context *c) |
void | SubsysReset (scxml4cpp::Context *c) |
void | SubsysInit (scxml4cpp::Context *c) |
void | SubsysEnable (scxml4cpp::Context *c) |
void | SubsysDisable (scxml4cpp::Context *c) |
ActionsStd (const ActionsStd &)=delete | |
ActionsStd & | operator= (const ActionsStd &)=delete |
Disable copy constructor. More... | |
This class contains the implementation of the actions dealing with the following "standard" commands:
and the following signals:
In addition it implements the:
sup::syssup::common::ActionsStd::ActionsStd | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data, | ||
SubsysFacade & | subsys_facade | ||
) |
|
delete |
void sup::syssup::common::ActionsStd::Config | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::Disable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Disable action. This action:
[in] | c | Last event received which should be a Stop event |
void sup::syssup::common::ActionsStd::Enable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Enable action. This action:
[in] | c | Last event received which should be a Stop event |
void sup::syssup::common::ActionsStd::Exit | ( | scxml4cpp::Context * | c | ) |
Implementation of the Exit action. This action:
[in] | c | Last event received which should be an Exit event |
void sup::syssup::common::ActionsStd::ExitNoReply | ( | scxml4cpp::Context * | c | ) |
Implementation of the ExitNoReply action. This action:
[in] | c | Last event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals). |
void sup::syssup::common::ActionsStd::GetConfig | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::GetState | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::GetStatus | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::GetVersion | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::Ignore | ( | scxml4cpp::Context * | c | ) |
Implementation of the Ignore action.
[in] | c | Last event received which should be a Ignore event |
Ignore from the configuration one or more subsyss managed by the server. When a subsys is ignored, it will not forward commands to its controller and the server will ignore its state.
void sup::syssup::common::ActionsStd::Init | ( | scxml4cpp::Context * | c | ) |
Implementation of the Init action. This action:
[in] | c | Last event received which should be a Init event |
void sup::syssup::common::ActionsStd::notifyEvent | ( | scxml4cpp::Event * | e | ) |
Implementation of the scxml4cpp::EventListener interface to know when an event has been rejected/ignored/processed. It can be used to implement the event reject policy.
[in] | e | Received event. |
void sup::syssup::common::ActionsStd::notifyStatus | ( | std::list< scxml4cpp::State * > & | status | ) |
Implementation of the scxml4cpp::StatusListener interface to receive the change of state notification.
[in] | status | Current State Machine active states configuration. |
|
delete |
Disable copy constructor.
void sup::syssup::common::ActionsStd::Reset | ( | scxml4cpp::Context * | c | ) |
Implementation of the Reset action. This action:
[in] | c | Last event received which should be a Stop event |
void sup::syssup::common::ActionsStd::SetConfig | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::SetLogLevel | ( | scxml4cpp::Context * | c | ) |
Implementation of the SetLog action. This action:
[in] | c | Last event received which should be a SetLog event |
void sup::syssup::common::ActionsStd::SetObMode | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::SetOpMode | ( | scxml4cpp::Context * | c | ) |
void sup::syssup::common::ActionsStd::Setup | ( | scxml4cpp::Context * | c | ) |
Implementation of the Setup action.
[in] | c | Last event received which should be a Setup event |
void sup::syssup::common::ActionsStd::SignalUsr1 | ( | scxml4cpp::Context * | c | ) |
Implementation of the SignalUsr1 action.
[in] | c | Last event received which should be an ExitNoReply event (the SignalUsr1 event is triggered by a SIGUSR1 signal). |
void sup::syssup::common::ActionsStd::Stop | ( | scxml4cpp::Context * | c | ) |
Implementation of the Stop action. This action:
[in] | c | Last event received which should be a Stop event |
void sup::syssup::common::ActionsStd::StopIgn | ( | scxml4cpp::Context * | c | ) |
Implementation of the StopIgn action.
[in] | c | Last event received which should be a StopIgn event |
void sup::syssup::common::ActionsStd::SubsysDisable | ( | scxml4cpp::Context * | c | ) |
Implementation of the SubsysDisable action. This action triggers a disable of a set of subsystems.
[in] | c | Last event received. |
void sup::syssup::common::ActionsStd::SubsysEnable | ( | scxml4cpp::Context * | c | ) |
Implementation of the SubsysEnable action. This action triggers a enable of a set of subsystems.
[in] | c | Last event received. |
void sup::syssup::common::ActionsStd::SubsysInit | ( | scxml4cpp::Context * | c | ) |
Implementation of the SubsysInit action. This action triggers a init of a set of subsystems.
[in] | c | Last event received. |
void sup::syssup::common::ActionsStd::SubsysNames | ( | scxml4cpp::Context * | c | ) |
Implementation of the DevNames action. This action:
[in] | c | Last event received which should be a DevNames event |
void sup::syssup::common::ActionsStd::SubsysReset | ( | scxml4cpp::Context * | c | ) |
Implementation of the SubsysReset action. This action triggers a reset of a set of subsystems.
[in] | c | Last event received. |
void sup::syssup::common::ActionsStd::SubsysStatus | ( | scxml4cpp::Context * | c | ) |
Implementation of the Status action. This action:
[in] | c | Last event received which should be a Status event |