ifw-fcf  2.0.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
fcf::devmgr::common::ActionsEnable Class Reference

#include <actionsEnable.hpp>

Inheritance diagram for fcf::devmgr::common::ActionsEnable:

Public Member Functions

 ActionsEnable (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade)
 
void Start (rad::AnyEvent const &last_event)
 
void Stop (rad::AnyEvent const &last_event)
 
void Done (rad::AnyEvent const &last_event)
 
void Error (rad::AnyEvent const &last_event)
 
void Timeout (rad::AnyEvent const &last_event)
 
 ActionsEnable (const ActionsEnable &)=delete
 Disable copy constructor. More...
 
ActionsEnableoperator= (const ActionsEnable &)=delete
 Disable assignment operator. More...
 

Detailed Description

Class grouping the actions related to the Enable event.

Constructor & Destructor Documentation

fcf::devmgr::common::ActionsEnable::ActionsEnable ( boost::asio::io_service &  ios,
rad::SMAdapter &  sm,
DataContext data_ctx,
DeviceFacade device_facade 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smState machine reference
[in]data_ctxData shared within the application among actions and activities.
[in]device_facadeFacade to all devices handled by the manager.
fcf::devmgr::common::ActionsEnable::ActionsEnable ( const ActionsEnable )
delete

Disable copy constructor.

Member Function Documentation

void fcf::devmgr::common::ActionsEnable::Done ( rad::AnyEvent const &  last_event)

Implementation of the Done callback. This method implements the actions when the Enable event was finalized.

Parameters
[in]last_eventLast event received.
void fcf::devmgr::common::ActionsEnable::Error ( rad::AnyEvent const &  last_event)

Implementation of the Error callback. This method implements the actions when the Enable event was finalized with an error.

Parameters
[in]last_eventLast event received.
ActionsEnable& fcf::devmgr::common::ActionsEnable::operator= ( const ActionsEnable )
delete

Disable assignment operator.

void fcf::devmgr::common::ActionsEnable::Start ( rad::AnyEvent const &  last_event)

Implementation of the Start callback.

Parameters
[in]last_eventLast event received which should be a Start event (the Start event is triggered by a ReqEnable request).
void fcf::devmgr::common::ActionsEnable::Stop ( rad::AnyEvent const &  last_event)

Implementation of the Stop callback. This callback:

  • replies back for the originator of the ReqStop request.
Parameters
[in]last_eventLast event received which should be a Stop event (the Stop event is triggered by a ReqStop request).
void fcf::devmgr::common::ActionsEnable::Timeout ( rad::AnyEvent const &  last_event)

Implementation of the Timeout callback. This method implements the actions when the Enable event was finalized unexpectly.

Parameters
[in]last_eventLast event received.

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