ifw  0.0.1-dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
server::ActionsPreset Class Reference

#include <ActionsPreset.hpp>

Inheritance diagram for server::ActionsPreset:
rad::ActionGroup rad::ActionGroup

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
 
ActionsPresetoperator= (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
 
ActionsPresetoperator= (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
 
ActionGroupoperator= (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
 
ActionGroupoperator= (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
 
ActionGroupoperator= (const ActionGroup &)=delete
 Disable copy constructor. More...
 

Detailed Description

Class grouping the actions related to the Preset event.

Constructor & Destructor Documentation

server::ActionsPreset::ActionsPreset ( boost::asio::io_service &  ios,
rad::Dispatcher dispatcher,
rad::MsgReplier msgReplier,
DataContext dataCtx 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]dispatcherReference to the event dispatcher.
[in]msgReplierNeeded to reply back to the originator of commands.
[in]dataCtxReference to the application run-time data.
server::ActionsPreset::~ActionsPreset ( )
virtual

Destructor. Unsubscribes from the DEVMEAS topic used to monitor the device position.

server::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete
server::ActionsPreset::ActionsPreset ( boost::asio::io_service &  ios,
rad::Dispatcher dispatcher,
rad::MsgReplier msgReplier,
DataContext dataCtx 
)
virtual server::ActionsPreset::~ActionsPreset ( )
virtual
server::ActionsPreset::ActionsPreset ( const ActionsPreset )
delete

Member Function Documentation

void server::ActionsPreset::Done ( rad::AnyEvent const lastEvent)

Replies OK to the originator of the Preset event.

Parameters
[in]lastEventMoveOk 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.

Parameters
[in]lastEventDevMeas event.
void server::ActionsPreset::Monitor ( rad::AnyEvent const lastEvent)
ActionsPreset& server::ActionsPreset::operator= ( const ActionsPreset )
delete

Disable copy constructor.

ActionsPreset& server::ActionsPreset::operator= ( const ActionsPreset )
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.

Parameters
[in]lastEventPreset 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.

Parameters
[in]lastEventStop 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.

Parameters
[in]lastEventMoveTimeout event.

The documentation for this class was generated from the following files: