ifw-sup
3.0.0-pre3
|
#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
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 | CmdStatus (scxml4cpp::Context *c) |
void | CmdConfig (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 | SetLogLevel (scxml4cpp::Context *c) |
void | Exit (scxml4cpp::Context *c) |
void | ExitNoReply (scxml4cpp::Context *c) |
void | SignalUsr1 (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::subsim::common::ActionsStd::ActionsStd | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data | ||
) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | State machine reference |
[in] | data | Data shared within the application among actions and activities. |
|
delete |
void sup::subsim::common::ActionsStd::CmdConfig | ( | scxml4cpp::Context * | c | ) |
Implementation of the CmdConfig action. This action:
[in] | c | Last event received which should be a CmdConfig event |
void sup::subsim::common::ActionsStd::CmdStatus | ( | scxml4cpp::Context * | c | ) |
Implementation of the CmdStatus action. This action:
[in] | c | Last event received which should be a CmdStatus event |
void sup::subsim::common::ActionsStd::Config | ( | scxml4cpp::Context * | c | ) |
Implementation of the Config action. This action:
void sup::subsim::common::ActionsStd::Disable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Disable action. This action:
[in] | c | Last event received which should be a Stop event (the Disable event is triggered by a ReqDisable request). |
void sup::subsim::common::ActionsStd::Enable | ( | scxml4cpp::Context * | c | ) |
Implementation of the Enable action. This action:
[in] | c | Last event received which should be a Stop event (the Enable event is triggered by a ReqEnable request). |
void sup::subsim::common::ActionsStd::Exit | ( | scxml4cpp::Context * | c | ) |
Implementation of the Exit action. This action:
[in] | c | Last event received which should be an Exit event (the Exit event is triggered by a ReqExit request). |
void sup::subsim::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::subsim::common::ActionsStd::GetConfig | ( | scxml4cpp::Context * | c | ) |
void sup::subsim::common::ActionsStd::GetState | ( | scxml4cpp::Context * | c | ) |
[in] | c | Last event received which should be a State event |
void sup::subsim::common::ActionsStd::GetStatus | ( | scxml4cpp::Context * | c | ) |
void sup::subsim::common::ActionsStd::GetVersion | ( | scxml4cpp::Context * | c | ) |
void sup::subsim::common::ActionsStd::Init | ( | scxml4cpp::Context * | c | ) |
Implementation of the Init action. This action:
[in] | c | Last event received which should be a Init event (the Init event is triggered by a ReqInit request). |
void sup::subsim::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::subsim::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::subsim::common::ActionsStd::Reset | ( | scxml4cpp::Context * | c | ) |
Implementation of the Reset action. This action:
[in] | c | Last event received which should be a Stop event (the Disable event is triggered by a ReqReset request). |
void sup::subsim::common::ActionsStd::SetLogLevel | ( | scxml4cpp::Context * | c | ) |
Implementation of the SetLog action. This action:
[in] | c | Last event received which should be a SetLog event (the SetLog event is triggered by a ReqSetLog request). |
void sup::subsim::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::subsim::common::ActionsStd::Stop | ( | scxml4cpp::Context * | c | ) |
Implementation of the Stop action. This action:
[in] | c | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |