#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data) | |
void | notifyEvent (scxml4cpp::Event *event) |
void | notifyStatus (std::set< scxml4cpp::State * > &status) |
void | Status (const rad::AnyEvent &last_event) |
void | Stop (const rad::AnyEvent &last_event) |
void | Init (const rad::AnyEvent &last_event) |
void | Enable (const rad::AnyEvent &last_event) |
void | Disable (const rad::AnyEvent &last_event) |
void | Reset (const rad::AnyEvent &last_event) |
void | Config (const rad::AnyEvent &last_event) |
void | SetLog (const rad::AnyEvent &last_event) |
void | Exit (const rad::AnyEvent &last_event) |
void | ExitNoReply (const rad::AnyEvent &last_event) |
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:
server::ActionsStd::ActionsStd | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
DataContext & | data | ||
) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | msgReplier | Helper class to reply to incoming requests. |
[in] | data | Data shared within the application among actions and activities. |
|
delete |
void server::ActionsStd::Config | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Config action. This action:
void server::ActionsStd::Disable | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Disable action. This action:
[in] | lastEvent | Last event received which should be a Stop event (the Disable event is triggered by a ReqDisable request). |
void server::ActionsStd::Enable | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Enable action. This action:
[in] | lastEvent | Last event received which should be a Stop event (the Enable event is triggered by a ReqEnable request). |
void server::ActionsStd::Exit | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Exit action. This action:
[in] | lastEvent | Last event received which should be an Exit event (the Exit event is triggered by a ReqExit request). |
void server::ActionsStd::ExitNoReply | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the ExitNoReply action. This action:
[in] | lastEvent | Last event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals). |
void server::ActionsStd::Init | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Init action. This action:
[in] | lastEvent | Last event received which should be a Init event (the Init event is triggered by a ReqInit request). |
void server::ActionsStd::notifyEvent | ( | scxml4cpp::Event * | event | ) |
Implementation of the rad::EventRejectListener interface to know when an event has been rejected (i.e. does not trigger any transition). It is used to implement the event reject policy.
[in] | event | Rejected event. |
void server::ActionsStd::notifyStatus | ( | std::set< 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 server::ActionsStd::Reset | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Reset action. This action:
[in] | lastEvent | Last event received which should be a Stop event (the Disable event is triggered by a ReqReset request). |
void server::ActionsStd::SetLog | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the SetLog action. This action:
[in] | lastEvent | Last event received which should be a SetLog event (the SetLog event is triggered by a ReqSetLog request). |
void server::ActionsStd::Status | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Status action. This action:
[in] | lastEvent | Last event received which should be a Status event (the Status event is triggered by a ReqStatus request). |
void server::ActionsStd::Stop | ( | const rad::AnyEvent & | last_event | ) |
Implementation of the Stop action. This action:
[in] | lastEvent | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |