ifw-daq  2.1.0-pre1
IFW Data Acquisition modules
Public Member Functions | List of all members
server::ActionsStd Class Reference

This class contains the implementation of the actions dealing with the standard commands from stdif.xml and the following signals: More...

#include <actionsStd.hpp>

+ Inheritance diagram for server::ActionsStd:

Public Member Functions

 ActionsStd (boost::asio::io_service &ios, rad::SMAdapter &sm, DataContext &data)
 Constructor. More...
 
void GetState (scxml4cpp::Context *c)
 Implementation of the GetState action. More...
 
void GetStatus (scxml4cpp::Context *c)
 Implementation of the GetStatus action. More...
 
void Stop (scxml4cpp::Context *c)
 Implementation of the Stop action. More...
 
void Init (scxml4cpp::Context *c)
 Implementation of the Init action. More...
 
void Enable (scxml4cpp::Context *c)
 Implementation of the Enable action. More...
 
void Disable (scxml4cpp::Context *c)
 Implementation of the Disable action. More...
 
void Reset (scxml4cpp::Context *c)
 Implementation of the Reset action. More...
 
void SetLogLevel (scxml4cpp::Context *c)
 Implementation of the SetLogLevel action. More...
 
void Exit (scxml4cpp::Context *c)
 Implementation of the Exit action. More...
 
void ExitNoReply (scxml4cpp::Context *c)
 Implementation of the ExitNoReply action. More...
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor. More...
 

Detailed Description

This class contains the implementation of the actions dealing with the standard commands from stdif.xml and the following signals:

In addition it implements the:

Definition at line 51 of file actionsStd.hpp.

Constructor & Destructor Documentation

◆ ActionsStd() [1/2]

server::ActionsStd::ActionsStd ( boost::asio::io_service &  ios,
rad::SMAdapter &  sm,
DataContext data 
)

Constructor.

Parameters
[in]iosReference to the event loop.
[in]smReference to the SM Adapter used to inject internal events.
[in]dataData shared within the application among actions and activities.

Definition at line 61 of file actionsStd.cpp.

◆ ActionsStd() [2/2]

server::ActionsStd::ActionsStd ( const ActionsStd )
delete

Member Function Documentation

◆ Disable()

void server::ActionsStd::Disable ( scxml4cpp::Context *  c)

Implementation of the Disable action.

This action:

  • replies back for the originator of the ReqDisable request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 148 of file actionsStd.cpp.

◆ Enable()

void server::ActionsStd::Enable ( scxml4cpp::Context *  c)

Implementation of the Enable action.

This action:

  • replies back for the originator of the ReqEnable request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 137 of file actionsStd.cpp.

◆ Exit()

void server::ActionsStd::Exit ( scxml4cpp::Context *  c)

Implementation of the Exit action.

This action:

  • replies back for the originator of the ReqExit request.
  • stops the event loop.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 74 of file actionsStd.cpp.

◆ ExitNoReply()

void server::ActionsStd::ExitNoReply ( scxml4cpp::Context *  c)

Implementation of the ExitNoReply action.

This action:

  • stops the event loop.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 86 of file actionsStd.cpp.

◆ GetState()

void server::ActionsStd::GetState ( scxml4cpp::Context *  c)

Implementation of the GetState action.

This action:

  • replies back for the originator of the GetState request with the current State Machine active state configuration.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 91 of file actionsStd.cpp.

◆ GetStatus()

void server::ActionsStd::GetStatus ( scxml4cpp::Context *  c)

Implementation of the GetStatus action.

This action:

  • replies back for the originator of the GetStatus request with the current State Machine active state configuration formatted.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 102 of file actionsStd.cpp.

◆ Init()

void server::ActionsStd::Init ( scxml4cpp::Context *  c)

Implementation of the Init action.

This action:

  • re-initialize the application run-time data,
  • replies back for the originator of the ReqInit request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 126 of file actionsStd.cpp.

◆ operator=()

ActionsStd& server::ActionsStd::operator= ( const ActionsStd )
delete

Disable copy constructor.

◆ Reset()

void server::ActionsStd::Reset ( scxml4cpp::Context *  c)

Implementation of the Reset action.

This action:

  • replies back for the originator of the ReqReset request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 159 of file actionsStd.cpp.

◆ SetLogLevel()

void server::ActionsStd::SetLogLevel ( scxml4cpp::Context *  c)

Implementation of the SetLogLevel action.

This action:

  • changes the log level,
  • replies back for the originator of the ReqSetLogLevel request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 170 of file actionsStd.cpp.

◆ Stop()

void server::ActionsStd::Stop ( scxml4cpp::Context *  c)

Implementation of the Stop action.

This action:

  • replies back for the originator of the ReqStop request.
Parameters
[in]cContext containing the last event received by the State Machine.

Definition at line 115 of file actionsStd.cpp.


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