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

#include <appCmdsImpl.hpp>

Inheritance diagram for rad::AppCmdsImpl:

Public Member Functions

 AppCmdsImpl (rad::SMAdapter &sm, rad::ActionMgr &action_mgr)
 
virtual ~AppCmdsImpl ()
 
virtual elt::mal::future< std::string > GetConfig (const std::string &p) override
 
virtual elt::mal::future< std::string > SetConfig (const std::string &p) override
 
virtual elt::mal::future< std::string > LoadConfig (const std::string &p) override
 
virtual elt::mal::future< std::string > SaveConfig (const std::string &p) override
 
virtual elt::mal::future< std::string > GetTrsHealth () override
 
virtual elt::mal::future< std::string > LoadStateMachine (const std::string &p) override
 
virtual elt::mal::future< std::string > LoadStateMachineExtension (const std::string &p) override
 
virtual elt::mal::future< std::string > SaveStateMachine (const std::string &p) override
 
virtual elt::mal::future< std::string > GetStateMachine () override
 

Detailed Description

This class realizes the CII/MAL ELT Standard Interface.

Constructor & Destructor Documentation

◆ AppCmdsImpl()

rad::AppCmdsImpl::AppCmdsImpl ( rad::SMAdapter & sm,
rad::ActionMgr & action_mgr )
explicit

Constructor.

Parameters
smReference to a State Machine adapter used to inject events.

◆ ~AppCmdsImpl()

rad::AppCmdsImpl::~AppCmdsImpl ( )
virtual

Destructor.

Member Function Documentation

◆ GetConfig()

elt::mal::future< std::string > rad::AppCmdsImpl::GetConfig ( const std::string & p)
overridevirtual

Handler for the GetConfig request. It injects EventsApp::GetConfig event into the State Machine.

Parameters
pList of keys of the configuration parameters.

◆ GetStateMachine()

elt::mal::future< std::string > rad::AppCmdsImpl::GetStateMachine ( )
overridevirtual
Returns
The currently loaded state machine model in text format.

◆ GetTrsHealth()

elt::mal::future< std::string > rad::AppCmdsImpl::GetTrsHealth ( )
overridevirtual

Handler for the GetTrsHealth request. It injects EventsApp::GetTrsHealth event into the State Machine.

◆ LoadConfig()

elt::mal::future< std::string > rad::AppCmdsImpl::LoadConfig ( const std::string & p)
overridevirtual

Handler for the LoadConfig request. It injects EventsApp::LoadConfig event into the State Machine.

Parameters
pConfiguration filename.

◆ LoadStateMachine()

elt::mal::future< std::string > rad::AppCmdsImpl::LoadStateMachine ( const std::string & p)
overridevirtual

Handler for the LoadStateMachine request. It loads a new State Machine model from file. If the loading fails, the old one is restored.

Parameters
pState Machine model filename.

◆ LoadStateMachineExtension()

elt::mal::future< std::string > rad::AppCmdsImpl::LoadStateMachineExtension ( const std::string & p)
overridevirtual

Handler for the LoadStateMachineExtension request. It loads a State Machine model extension from file and merge it with the State Machine model in memory. If the loading fails, the extension is not merged.

Parameters
pState Machine model extension filename.

◆ SaveConfig()

elt::mal::future< std::string > rad::AppCmdsImpl::SaveConfig ( const std::string & p)
overridevirtual

Handler for the SaveConfig request. It injects EventsApp::SaveConfig event into the State Machine.

Parameters
pConfiguration filename.

◆ SaveStateMachine()

elt::mal::future< std::string > rad::AppCmdsImpl::SaveStateMachine ( const std::string & p)
overridevirtual

Handler for the SaveStateMachine request. It save the currently loaded State Machine model to file.

Parameters
pState Machine model filename.

◆ SetConfig()

elt::mal::future< std::string > rad::AppCmdsImpl::SetConfig ( const std::string & p)
overridevirtual

Handler for the SetConfig request. It injects EventsApp::SetConfig event into the State Machine.

Parameters
pList of keys and values for the configuration parameters.

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