ifw-fcf  5.0.0-pre2
Public Member Functions | List of all members
fcf::devmgr::common::ActionsInit Class Reference

#include <actionsInit.hpp>

Inheritance diagram for fcf::devmgr::common::ActionsInit:

Public Member Functions

 ActionsInit (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data_ctx, DeviceFacade &device_facade)
 
void Start (scxml4cpp::Context *c)
 
void Stop (scxml4cpp::Context *c)
 
void Done (scxml4cpp::Context *c)
 
void Error (scxml4cpp::Context *c)
 
void Timeout (scxml4cpp::Context *c)
 
 ActionsInit (const ActionsInit &)=delete
 Disable copy constructor. More...
 
ActionsInitoperator= (const ActionsInit &)=delete
 Disable assignment operator. More...
 

Detailed Description

Class grouping the actions related to the Init event (command).

Constructor & Destructor Documentation

◆ ActionsInit() [1/2]

fcf::devmgr::common::ActionsInit::ActionsInit ( 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.

◆ ActionsInit() [2/2]

fcf::devmgr::common::ActionsInit::ActionsInit ( const ActionsInit )
delete

Disable copy constructor.

Member Function Documentation

◆ Done()

void fcf::devmgr::common::ActionsInit::Done ( scxml4cpp::Context *  c)

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

Parameters
[in]last_eventLast event received.

◆ Error()

void fcf::devmgr::common::ActionsInit::Error ( scxml4cpp::Context *  c)

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

Parameters
[in]last_eventLast event received.

◆ operator=()

ActionsInit& fcf::devmgr::common::ActionsInit::operator= ( const ActionsInit )
delete

Disable assignment operator.

◆ Start()

void fcf::devmgr::common::ActionsInit::Start ( scxml4cpp::Context *  c)

Implementation of the Start callback.

Parameters
[in]last_eventLast event received which should be a Start event (the Start event is triggered by a ReqInit request).

◆ Stop()

void fcf::devmgr::common::ActionsInit::Stop ( scxml4cpp::Context *  c)

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).

◆ Timeout()

void fcf::devmgr::common::ActionsInit::Timeout ( scxml4cpp::Context *  c)

Implementation of the Timeout callback. This method implements the actions when the Init event was finalized with a timeout.

Parameters
[in]last_eventLast event received.

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