|
ifw
0.0.1-dev
|
#include <ActionsPreset.hpp>
Public Member Functions | |
| ActionsPreset (boost::asio::io_service &ios, rad::Dispatcher &dispatcher, rad::MsgReplier &msgReplier, DataContext &dataCtx) | |
| virtual | ~ActionsPreset () |
| void | Start (rad::AnyEvent const &lastEvent) |
| void | Stop (rad::AnyEvent const &lastEvent) |
| void | Done (rad::AnyEvent const &lastEvent) |
| void | Timeout (rad::AnyEvent const &lastEvent) |
| void | Monitor (rad::AnyEvent const &lastEvent) |
| ActionsPreset (const ActionsPreset &)=delete | |
| ActionsPreset & | operator= (const ActionsPreset &)=delete |
| Disable copy constructor. More... | |
| ActionsPreset (boost::asio::io_service &ios, rad::Dispatcher &dispatcher, rad::MsgReplier &msgReplier, DataContext &dataCtx) | |
| virtual | ~ActionsPreset () |
| void | Start (rad::AnyEvent const &lastEvent) |
| void | Stop (rad::AnyEvent const &lastEvent) |
| void | Done (rad::AnyEvent const &lastEvent) |
| void | Timeout (rad::AnyEvent const &lastEvent) |
| void | Monitor (rad::AnyEvent const &lastEvent) |
| ActionsPreset (const ActionsPreset &)=delete | |
| ActionsPreset & | operator= (const ActionsPreset &)=delete |
| Disable copy constructor. More... | |
Public Member Functions inherited from rad::ActionGroup | |
| 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... | |
| 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... | |
Class grouping the actions related to the Preset event.
| server::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | ios, |
| rad::Dispatcher & | dispatcher, | ||
| rad::MsgReplier & | msgReplier, | ||
| DataContext & | dataCtx | ||
| ) |
Constructor.
| [in] | ios | Reference to the event loop. |
| [in] | dispatcher | Reference to the event dispatcher. |
| [in] | msgReplier | Needed to reply back to the originator of commands. |
| [in] | dataCtx | Reference to the application run-time data. |
|
virtual |
Destructor. Unsubscribes from the DEVMEAS topic used to monitor the device position.
|
delete |
| server::ActionsPreset::ActionsPreset | ( | boost::asio::io_service & | ios, |
| rad::Dispatcher & | dispatcher, | ||
| rad::MsgReplier & | msgReplier, | ||
| DataContext & | dataCtx | ||
| ) |
|
virtual |
|
delete |
| void server::ActionsPreset::Done | ( | rad::AnyEvent const & | lastEvent | ) |
Replies OK to the originator of the Preset event.
| [in] | lastEvent | MoveOk event. |
| void server::ActionsPreset::Done | ( | rad::AnyEvent const & | lastEvent | ) |
| void server::ActionsPreset::Monitor | ( | rad::AnyEvent const & | lastEvent | ) |
Receives the intermidiate device positions (DevMeas topic) and stores them in the DB.
| [in] | lastEvent | DevMeas event. |
| void server::ActionsPreset::Monitor | ( | rad::AnyEvent const & | lastEvent | ) |
|
delete |
Disable copy constructor.
|
delete |
Disable copy constructor.
| void server::ActionsPreset::Start | ( | rad::AnyEvent const & | lastEvent | ) |
Retrieves from the Preset event the associated target position and sends a ReqMove command to the device.
| [in] | lastEvent | Preset event. |
| void server::ActionsPreset::Start | ( | rad::AnyEvent const & | lastEvent | ) |
| void server::ActionsPreset::Stop | ( | rad::AnyEvent const & | lastEvent | ) |
Replies command aborted to the originator of the Preset event. Replies OK to the originator of the Stop event.
| [in] | lastEvent | Stop event. |
| void server::ActionsPreset::Stop | ( | rad::AnyEvent const & | lastEvent | ) |
| void server::ActionsPreset::Timeout | ( | rad::AnyEvent const & | lastEvent | ) |
| void server::ActionsPreset::Timeout | ( | rad::AnyEvent const & | lastEvent | ) |
Replies ERROR timeout to the originator of the Preset event.
| [in] | lastEvent | MoveTimeout event. |
1.8.5