rad
2.0.0
|
#include <actionsStd.hpp>
Public Member Functions | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msg_replier, DataContext &data) | |
void | notifyEvent (scxml4cpp::Event *event) |
void | notifyStatus (std::set< scxml4cpp::State * > &status) |
void | Status (rad::AnyEvent const &event) |
void | Status2 (rad::AnyEvent const &event) |
void | Stop (rad::AnyEvent const &event) |
void | Init (rad::AnyEvent const &event) |
void | Enable (rad::AnyEvent const &event) |
void | Disable (rad::AnyEvent const &event) |
void | Reset (rad::AnyEvent const &event) |
void | Config (rad::AnyEvent const &event) |
void | SetLogLevel (rad::AnyEvent const &event) |
void | Exit (rad::AnyEvent const &event) |
void | ExitNoReply (rad::AnyEvent const &event) |
void | Pong (rad::AnyEvent const &event) |
ActionsStd (const ActionsStd &)=delete | |
ActionsStd & | operator= (const ActionsStd &)=delete |
Disable copy constructor. More... | |
ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, rad::MsgReplier &msg_replier, DataContext &data) | |
void | notifyEvent (scxml4cpp::Event *event) |
void | notifyStatus (std::set< scxml4cpp::State * > &status) |
void | Status (rad::AnyEvent const &event) |
void | Status2 (rad::AnyEvent const &event) |
void | Stop (rad::AnyEvent const &event) |
void | Init (rad::AnyEvent const &event) |
void | Enable (rad::AnyEvent const &event) |
void | Disable (rad::AnyEvent const &event) |
void | Reset (rad::AnyEvent const &event) |
void | Config (rad::AnyEvent const &event) |
void | SetLogLevel (rad::AnyEvent const &event) |
void | Exit (rad::AnyEvent const &event) |
void | ExitNoReply (rad::AnyEvent const &event) |
void | Pong (rad::AnyEvent const &event) |
ActionsStd (const ActionsStd &)=delete | |
ActionsStd & | operator= (const ActionsStd &)=delete |
Disable copy constructor. More... | |
![]() | |
ActionGroup (const std::string &id) | |
virtual | ~ActionGroup () |
const std::string & | GetId () const |
void | SetId (const std::string &id) |
ActionGroup (const ActionGroup &)=delete | |
ActionGroup & | operator= (const ActionGroup &)=delete |
Disable copy constructor. More... | |
ActionGroup (const std::string &id) | |
virtual | ~ActionGroup () |
const std::string & | GetId () const |
void | SetId (const std::string &id) |
ActionGroup (const ActionGroup &)=delete | |
ActionGroup & | operator= (const ActionGroup &)=delete |
Disable copy constructor. More... | |
![]() | |
StatusListener () | |
virtual | ~StatusListener () |
StatusListener () | |
virtual | ~StatusListener () |
StatusListener () | |
virtual | ~StatusListener () |
![]() | |
EventListener () | |
virtual | ~EventListener () |
EventListener () | |
virtual | ~EventListener () |
EventListener () | |
virtual | ~EventListener () |
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, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | data | ||
) |
Constructor.
[in] | ios | Reference to the event loop. |
[in] | sm | Reference to the SM adapter used to trigger events. |
[in] | msg_replier | Helper class to reply to incoming requests. |
[in] | data | Data shared within the application among actions and activities. |
|
delete |
server::ActionsStd::ActionsStd | ( | boost::asio::io_service & | ios, |
rad::SMAdapter & | sm, | ||
rad::MsgReplier & | msg_replier, | ||
DataContext & | data | ||
) |
|
delete |
void server::ActionsStd::Config | ( | rad::AnyEvent const & | event | ) |
Implementation of the Config action. This action:
void server::ActionsStd::Config | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Disable | ( | rad::AnyEvent const & | event | ) |
Implementation of the Disable action. This action:
[in] | event | Last event received which should be a Stop event (the Disable event is triggered by a ReqDisable request). |
void server::ActionsStd::Disable | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Enable | ( | rad::AnyEvent const & | event | ) |
Implementation of the Enable action. This action:
[in] | event | Last event received which should be a Stop event (the Enable event is triggered by a ReqEnable request). |
void server::ActionsStd::Enable | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Exit | ( | rad::AnyEvent const & | event | ) |
Implementation of the Exit action. This action:
[in] | event | Last event received which should be an Exit event (the Exit event is triggered by a ReqExit request). |
void server::ActionsStd::Exit | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::ExitNoReply | ( | rad::AnyEvent const & | event | ) |
Implementation of the ExitNoReply action. This action:
[in] | event | Last event received which should be an ExitNoReply event (the ExitNoReply event is triggered by a SIGTERM, SIGINT signals). |
void server::ActionsStd::ExitNoReply | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Init | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Init | ( | rad::AnyEvent const & | event | ) |
Implementation of the Init action. This action:
[in] | event | Last event received which should be a Init event (the Init event is triggered by a ReqInit request). |
|
virtual |
Implements scxml4cpp::EventListener.
|
virtual |
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] | event | Rejected event. |
Implements scxml4cpp::EventListener.
|
virtual |
Implementation of the scxml4cpp::StatusListener interface to receive the change of state notification.
[in] | status | Current State Machine active states configuration. |
Implements scxml4cpp::StatusListener.
|
virtual |
Implements scxml4cpp::StatusListener.
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
void server::ActionsStd::Pong | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Pong | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Reset | ( | rad::AnyEvent const & | event | ) |
Implementation of the Reset action. This action:
[in] | event | Last event received which should be a Stop event (the Disable event is triggered by a ReqReset request). |
void server::ActionsStd::Reset | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::SetLogLevel | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::SetLogLevel | ( | rad::AnyEvent const & | event | ) |
Implementation of the SetLogLevel action. This action:
[in] | event | Last event received which should be a SetLogLevel event (the SetLogLevel event is triggered by a ReqSetLogLevel request). |
void server::ActionsStd::Status | ( | rad::AnyEvent const & | event | ) |
Implementation of the Status action. This action:
[in] | event | Last event received which should be a Status event (the Status event is triggered by a ReqStatus request). |
void server::ActionsStd::Status | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Status2 | ( | rad::AnyEvent const & | event | ) |
Implementation of the Status2 action. This action:
[in] | event | Last event received which should be a Status2 event (the Status2 event is triggered by a ReqStatus2 request). |
void server::ActionsStd::Status2 | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Stop | ( | rad::AnyEvent const & | event | ) |
void server::ActionsStd::Stop | ( | rad::AnyEvent const & | event | ) |
Implementation of the Stop action. This action:
[in] | event | Last event received which should be a Stop event (the Stop event is triggered by a ReqStop request). |