ifw-sup 5.0.0
Loading...
Searching...
No Matches
Classes | Typedefs | Functions | Variables
ifw::sup::subsim::common Namespace Reference

ActionsInit class source file. More...

Classes

class  ActionMgr
 
class  ActionsDisable
 
class  ActionsEnable
 
class  ActionsInit
 
class  ActionsSetup
 
class  ActionsStd
 
class  ActivityDisabling
 
class  ActivityEnabling
 
class  ActivityInitialising
 
class  ActivitySettingUp
 
class  AppCmdsImpl
 
class  Config
 
class  DataContext
 
class  IConfig
 
struct  ReplyConfigData
 
class  StdCmdsImpl
 

Typedefs

using DbPair = std::pair<std::string, std::any>
 
using DbVector = std::vector<DbPair>
 

Functions

template<class EVENT_DONE , class EVENT_ERR >
void EmulateEvent (const Config &config, rad::SMAdapter &sm, const std::string &cmd, rad::ThreadActivity *activity)
 

Variables

constexpr auto CONFIG_COMMAND_INIT = "Init"
 
constexpr auto CONFIG_COMMAND_ENABLE = "Enable"
 
constexpr auto CONFIG_COMMAND_DISABLE = "Disable"
 
constexpr auto CONFIG_COMMAND_SETUP = "Setup"
 
constexpr auto KEY_CONFIG_COMANDS = "commands"
 
constexpr auto KEY_CONFIG_CMDNAME = "name"
 
constexpr auto KEY_CONFIG_CMDTOUT = "cmdtout"
 
constexpr auto KEY_CONFIG_REPLY_TYPE = "reply_ok"
 
constexpr auto KEY_CONFIG_REPLY_DELAY = "reply_delay"
 
constexpr auto KEY_CONFIG_REPLY_ERR_MSG = "reply_error_msg"
 
const short SRV_STATE_NOT_OPERATIONAL = 1
 
const short SRV_STATE_OPERATIONAL = 2
 
const short SRV_SUBSTATE_NOTREADY = 1
 
const short SRV_SUBSTATE_READY = 2
 
const short SRV_SUBSTATE_IDLE = 3
 
const short SRV_SUBSTATE_INITIALISING = 4
 
const short SRV_SUBSTATE_ENABLING = 5
 
const short SRV_SUBSTATE_SETTINGUP = 6
 
const short SRV_SUBSTATE_ERROR = 10
 
const std::string SRV_STATE_NOT_OPERATIONAL_STR = "NotOperational"
 
const std::string SRV_STATE_OPERATIONAL_STR = "Operational"
 
const std::string SRV_STATE_UNAVAILABLE_STR = "Unavailable"
 
const std::string SRV_SUBSTATE_NOTREADY_STR = "NotReady"
 
const std::string SRV_SUBSTATE_READY_STR = "Ready"
 
const std::string SRV_SUBSTATE_IDLE_STR = "Idle"
 
const std::string SRV_SUBSTATE_INITIALISING_STR = "Initialising"
 
const std::string SRV_SUBSTATE_ENABLING_STR = "Enabling"
 
const std::string SRV_SUBSTATE_SETTINGUP_STR = "SettingUp"
 
const std::string SRV_SUBSTATE_ERROR_STR = "Error"
 
const std::unordered_map< short, std::string > SrvStateMap
 
const std::unordered_map< std::string, short > SrvStateStrMap
 
const std::unordered_map< short, std::string > SrvSubstateMap
 
const std::unordered_map< std::string, short > SrvSubstateStrMap
 

Detailed Description

ActionsInit class source file.

Typedef Documentation

◆ DbPair

using ifw::sup::subsim::common::DbPair = std::pair<std::string, std::any>

◆ DbVector

Function Documentation

◆ EmulateEvent()

template<class EVENT_DONE , class EVENT_ERR >
void ifw::sup::subsim::common::EmulateEvent ( const Config & config,
rad::SMAdapter & sm,
const std::string & cmd,
rad::ThreadActivity * activity )

Variable Documentation

◆ CONFIG_COMMAND_DISABLE

constexpr auto ifw::sup::subsim::common::CONFIG_COMMAND_DISABLE = "Disable"
constexpr

◆ CONFIG_COMMAND_ENABLE

constexpr auto ifw::sup::subsim::common::CONFIG_COMMAND_ENABLE = "Enable"
constexpr

◆ CONFIG_COMMAND_INIT

constexpr auto ifw::sup::subsim::common::CONFIG_COMMAND_INIT = "Init"
constexpr

Default application configuration values.

◆ CONFIG_COMMAND_SETUP

constexpr auto ifw::sup::subsim::common::CONFIG_COMMAND_SETUP = "Setup"
constexpr

◆ KEY_CONFIG_CMDNAME

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_CMDNAME = "name"
constexpr

◆ KEY_CONFIG_CMDTOUT

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_CMDTOUT = "cmdtout"
constexpr

◆ KEY_CONFIG_COMANDS

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_COMANDS = "commands"
constexpr

Application configuration values.

◆ KEY_CONFIG_REPLY_DELAY

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_REPLY_DELAY = "reply_delay"
constexpr

◆ KEY_CONFIG_REPLY_ERR_MSG

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_REPLY_ERR_MSG = "reply_error_msg"
constexpr

◆ KEY_CONFIG_REPLY_TYPE

constexpr auto ifw::sup::subsim::common::KEY_CONFIG_REPLY_TYPE = "reply_ok"
constexpr

◆ SRV_STATE_NOT_OPERATIONAL

const short ifw::sup::subsim::common::SRV_STATE_NOT_OPERATIONAL = 1

◆ SRV_STATE_NOT_OPERATIONAL_STR

const std::string ifw::sup::subsim::common::SRV_STATE_NOT_OPERATIONAL_STR = "NotOperational"

◆ SRV_STATE_OPERATIONAL

const short ifw::sup::subsim::common::SRV_STATE_OPERATIONAL = 2

◆ SRV_STATE_OPERATIONAL_STR

const std::string ifw::sup::subsim::common::SRV_STATE_OPERATIONAL_STR = "Operational"

◆ SRV_STATE_UNAVAILABLE_STR

const std::string ifw::sup::subsim::common::SRV_STATE_UNAVAILABLE_STR = "Unavailable"

◆ SRV_SUBSTATE_ENABLING

const short ifw::sup::subsim::common::SRV_SUBSTATE_ENABLING = 5

◆ SRV_SUBSTATE_ENABLING_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_ENABLING_STR = "Enabling"

◆ SRV_SUBSTATE_ERROR

const short ifw::sup::subsim::common::SRV_SUBSTATE_ERROR = 10

◆ SRV_SUBSTATE_ERROR_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_ERROR_STR = "Error"

◆ SRV_SUBSTATE_IDLE

const short ifw::sup::subsim::common::SRV_SUBSTATE_IDLE = 3

◆ SRV_SUBSTATE_IDLE_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_IDLE_STR = "Idle"

◆ SRV_SUBSTATE_INITIALISING

const short ifw::sup::subsim::common::SRV_SUBSTATE_INITIALISING = 4

◆ SRV_SUBSTATE_INITIALISING_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_INITIALISING_STR = "Initialising"

◆ SRV_SUBSTATE_NOTREADY

const short ifw::sup::subsim::common::SRV_SUBSTATE_NOTREADY = 1

◆ SRV_SUBSTATE_NOTREADY_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_NOTREADY_STR = "NotReady"

◆ SRV_SUBSTATE_READY

const short ifw::sup::subsim::common::SRV_SUBSTATE_READY = 2

◆ SRV_SUBSTATE_READY_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_READY_STR = "Ready"

◆ SRV_SUBSTATE_SETTINGUP

const short ifw::sup::subsim::common::SRV_SUBSTATE_SETTINGUP = 6

◆ SRV_SUBSTATE_SETTINGUP_STR

const std::string ifw::sup::subsim::common::SRV_SUBSTATE_SETTINGUP_STR = "SettingUp"

◆ SrvStateMap

const std::unordered_map<short, std::string> ifw::sup::subsim::common::SrvStateMap
Initial value:
= {
}
const std::string SRV_STATE_NOT_OPERATIONAL_STR
Definition dataContext.hpp:37
const std::string SRV_STATE_OPERATIONAL_STR
Definition dataContext.hpp:38
const short SRV_STATE_OPERATIONAL
Definition dataContext.hpp:26
const short SRV_STATE_NOT_OPERATIONAL
Definition dataContext.hpp:25

◆ SrvStateStrMap

const std::unordered_map<std::string, short> ifw::sup::subsim::common::SrvStateStrMap

◆ SrvSubstateMap

const std::unordered_map<short, std::string> ifw::sup::subsim::common::SrvSubstateMap
Initial value:
= {
{SRV_SUBSTATE_IDLE, SRV_SUBSTATE_IDLE_STR},
{SRV_SUBSTATE_INITIALISING, SRV_SUBSTATE_INITIALISING_STR},
{SRV_SUBSTATE_ENABLING, SRV_SUBSTATE_ENABLING_STR},
{SRV_SUBSTATE_ERROR, SRV_SUBSTATE_ERROR_STR},
}
const std::string SRV_SUBSTATE_SETTINGUP_STR
Definition dataContext.hpp:46
const std::string SRV_SUBSTATE_READY_STR
Definition dataContext.hpp:42
const short SRV_SUBSTATE_SETTINGUP
Definition dataContext.hpp:34
const short SRV_SUBSTATE_READY
Definition dataContext.hpp:30
const short SRV_SUBSTATE_NOTREADY
Definition dataContext.hpp:29
const std::string SRV_SUBSTATE_NOTREADY_STR
Definition dataContext.hpp:41

◆ SrvSubstateStrMap

const std::unordered_map<std::string, short> ifw::sup::subsim::common::SrvSubstateStrMap
Initial value:
= {
{SRV_SUBSTATE_IDLE_STR, SRV_SUBSTATE_IDLE},
{SRV_SUBSTATE_INITIALISING_STR, SRV_SUBSTATE_INITIALISING},
{SRV_SUBSTATE_ENABLING_STR, SRV_SUBSTATE_ENABLING},
{SRV_SUBSTATE_ERROR_STR, SRV_SUBSTATE_ERROR},
}