rad 6.2.0
Loading...
Searching...
No Matches
Public Member Functions | List of all members
exmalserver::ActionsStd Class Reference

#include <actionsStd.hpp>

Inheritance diagram for exmalserver::ActionsStd:
rad::ActionGroup

Public Member Functions

 ActionsStd (boost::asio::io_context &ios, rad::SMAdapter &sm, DataContext &data)
 
void GetState (scxml4cpp::Context *c)
 
void GetStatus (scxml4cpp::Context *c)
 
void GetVersion (scxml4cpp::Context *c)
 
void Stop (scxml4cpp::Context *c)
 
void Init (scxml4cpp::Context *c)
 
void Enable (scxml4cpp::Context *c)
 
void Disable (scxml4cpp::Context *c)
 
void Reset (scxml4cpp::Context *c)
 
void Config (scxml4cpp::Context *c)
 
void SetLogLevel (scxml4cpp::Context *c)
 
void Exit (scxml4cpp::Context *c)
 
void ExitNoReply (scxml4cpp::Context *c)
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor.
 
- 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.
 

Detailed Description

This class contains the implementation of the actions dealing with the following "standard" commands:

and the following signals:

In addition it implements the:

Constructor & Destructor Documentation

◆ ActionsStd() [1/2]

exmalserver::ActionsStd::ActionsStd ( boost::asio::io_context & 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.

◆ ActionsStd() [2/2]

exmalserver::ActionsStd::ActionsStd ( const ActionsStd & )
delete

Member Function Documentation

◆ Config()

void exmalserver::ActionsStd::Config ( scxml4cpp::Context * c)

Implementation of the Config action. This action:

  • reload the application configuration file,
  • re-establish connection to the Runtime-DB,
  • replies back for the originator of the ReqConfig request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Disable()

void exmalserver::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.

◆ Enable()

void exmalserver::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.

◆ Exit()

void exmalserver::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.

◆ ExitNoReply()

void exmalserver::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.

◆ GetState()

void exmalserver::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.

◆ GetStatus()

void exmalserver::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.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ GetVersion()

void exmalserver::ActionsStd::GetVersion ( scxml4cpp::Context * c)

Implementation of the GetVersion action. This action:

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

◆ Init()

void exmalserver::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.

◆ operator=()

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

Disable copy constructor.

◆ Reset()

void exmalserver::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.

◆ SetLogLevel()

void exmalserver::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.

◆ Stop()

void exmalserver::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.

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