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

#include <actionsStd.hpp>

Inheritance diagram for rad::ActionsStd:
rad::ConfigurableActionGroup rad::ActionGroup

Public Member Functions

 ActionsStd (Application &appl, ConfigurableActionMgr &action_mgr, DataContext &data)
 
virtual ~ActionsStd ()
 
void Initialize () override
 
void Configure (const std::vector< std::string > &keys) override
 
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 SetLogLevel (scxml4cpp::Context *c)
 
void GetLogLevel (scxml4cpp::Context *c)
 
void Exit (scxml4cpp::Context *c)
 
 ActionsStd (const ActionsStd &)=delete
 
ActionsStdoperator= (const ActionsStd &)=delete
 Disable copy constructor.
 
- Public Member Functions inherited from rad::ConfigurableActionGroup
 ConfigurableActionGroup (const std::string &id)
 
virtual ~ConfigurableActionGroup ()
 
 ConfigurableActionGroup (const ConfigurableActionGroup &)=delete
 
ConfigurableActionGroupoperator= (const ConfigurableActionGroup &)=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:

Constructor & Destructor Documentation

◆ ActionsStd() [1/2]

rad::ActionsStd::ActionsStd ( Application & appl,
ConfigurableActionMgr & action_mgr,
DataContext & data )

Constructor.

Parameters
applReference to the Application used to inject internal events.
action_mgrReference to the ActionMgr used to trigger the re-initialize notification to all ActionGroup and Activity objects when processing the Init request.
dataData shared within the application among actions and activities.

◆ ~ActionsStd()

rad::ActionsStd::~ActionsStd ( )
virtual

◆ ActionsStd() [2/2]

rad::ActionsStd::ActionsStd ( const ActionsStd & )
delete

Member Function Documentation

◆ Configure()

void rad::ActionsStd::Configure ( const std::vector< std::string > & keys)
overridevirtual

Method invoked when SetConfig or LoadConfig command is received to re-configure this class attributes.

Parameters
keysModified parameters. Empty vector means all params have changed.

Implements rad::ConfigurableActionGroup.

◆ Disable()

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

Implementation of the Disable action. This action:

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

◆ Enable()

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

Implementation of the Enable action. This action:

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

◆ Exit()

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

Implementation of the Exit action. This action:

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

◆ GetLogLevel()

void rad::ActionsStd::GetLogLevel ( scxml4cpp::Context * c)

Implementation of the GetLogLevel action. This action:

  • uses LogManager to get all available loggers and their levels,
  • replies back to the originator of the ReqGetLogLevel request.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ GetState()

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

Implementation of the GetState action. This action:

  • replies back to 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 rad::ActionsStd::GetStatus ( scxml4cpp::Context * c)

Implementation of the GetStatus action. This action:

  • replies back to 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 rad::ActionsStd::GetVersion ( scxml4cpp::Context * c)

Implementation of the GetVersion action. This action:

  • replies back to the originator of the GetVersion request with the version of the application.
Parameters
[in]cContext containing the last event received by the State Machine.

◆ Init()

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

Implementation of the Init action. This action:

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

◆ Initialize()

void rad::ActionsStd::Initialize ( )
overridevirtual

Method invoked when Init command is received to re-initialize this class attributes.

Implements rad::ConfigurableActionGroup.

◆ operator=()

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

Disable copy constructor.

◆ Reset()

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

Implementation of the Reset action. This action:

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

◆ SetLogLevel()

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

Implementation of the SetLogLevel action. This action:

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

◆ Stop()

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

Implementation of the Stop action. This action:

  • replies back to 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: