Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
Loading...
Searching...
No Matches
gva::StateCOM Struct Reference

The COM state. More...

#include <com.h>

Inheritance diagram for gva::StateCOM:
Inheritance graph
Collaboration diagram for gva::StateCOM:
Collaboration graph

Public Member Functions

void entry () override
 entry actions in some States
 
void react (EventKeyPowerOn const &) override
 Nothing to do in base class.
 
void react (EventKeySA const &) override
 Nothing to do in base class.
 
void react (EventKeyWPN const &) override
 Nothing to do in base class.
 
void react (EventKeyDEF const &) override
 Nothing to do in base class.
 
void react (EventKeySYS const &) override
 Nothing to do in base class.
 
void react (EventKeyDRV const &) override
 Nothing to do in base class.
 
void react (EventKeySTR const &) override
 Nothing to do in base class.
 
void react (EventKeyCOM const &) override
 Nothing to do in base class.
 
void react (EventKeyBMS const &) override
 Nothing to do in base class.
 
void react (EventKeyAlarms const &) override
 Nothing to do in base class.
 
void react (EventKeyFunction const &e) override
 Nothing to do in base class.
 
- Public Member Functions inherited from gva::Hmi
virtual ~Hmi ()=default
 The default constructor.
 
virtual void exit (void)
 no exit actions
 

Additional Inherited Members

- Public Types inherited from gva::tinyfsm::Fsm< Hmi >
using fsmtype = Fsm< Hmi >
 Templated FSM.
 
using state_ptr_t = Hmi *
 Current state pointer.
 
- Static Public Member Functions inherited from gva::Hmi
static void KeySide (GvaKeyEnum key)
 Process side label key presses.
 
static GvaKeyEnum Key (GvaKeyEnum key)
 Process key presses.
 
static GvaKeyEnum KeySA (GvaKeyEnum key, GvaKeyEnum *current)
 Process SA key press.
 
static GvaKeyEnum KeyWPN (GvaKeyEnum key)
 Process WPN key press.
 
static GvaKeyEnum KeyDEF (GvaKeyEnum key)
 Process DEF key press.
 
static GvaKeyEnum KeySYS (GvaKeyEnum key)
 Process SYS key press.
 
static GvaKeyEnum KeyDRV (GvaKeyEnum key)
 Process DRV key press.
 
static GvaKeyEnum KeySTR (GvaKeyEnum key)
 Process STR key press.
 
static GvaKeyEnum KeyCOM (GvaKeyEnum key)
 Process COM key press.
 
static GvaKeyEnum KeyBMS (GvaKeyEnum key)
 Process BMS key press.
 
static GvaKeyEnum KeyAlarms (GvaKeyEnum key)
 Process Alarms key press.
 
static void Reset ()
 Reset the HMI widgets.
 
static void SetCanvasPng (const std::string &file)
 Set a screen PNG file as background.
 
static ScreenGvaGetRendrer ()
 Get the screen render object.
 
static ScreenGetScreen ()
 Get the screen object.
 
static void Labels (LabelModeEnum labels)
 Toggle onscreen label states.
 
static void ClearAlarms (std::shared_ptr< ScreenGva > screen_render)
 Clear the alarms.
 
- Static Public Member Functions inherited from gva::tinyfsm::Fsm< Hmi >
static constexpr S & state (void)
 public, leaving ability to access state instance (e.g. on Reset)
 
static constexpr bool is_in_state (void)
 Check if in state.
 
static void set_initial_state ()
 state machine functions
 
static void Reset ()
 Reset state machine.
 
static void enter ()
 Enter state.
 
static void start ()
 start state
 
static void dispatch (E const &event)
 Dispatch a new state.
 
- Static Public Attributes inherited from gva::tinyfsm::Fsm< Hmi >
static state_ptr_t current_state_ptr
 Current state pointer.
 
- Protected Member Functions inherited from gva::tinyfsm::Fsm< Hmi >
void transit (void)
 state transition functions
 
void transit (ActionFunction action_function)
 Transition to new state.
 
void transit (ActionFunction action_function, ConditionFunction condition_function)
 Transit to new state.
 
- Static Protected Attributes inherited from gva::Hmi
static std::shared_ptr< ViewGvaManagermanager_
 The HMI manager.
 
static ResolutionType view_
 The resolution type.
 
static FunctionSelect top_
 The function select widget.
 
static CommonTaskKeys bottom_
 The common task keys at the bottom of the screen.
 
static Canvas canvas_
 The screen canvas.
 
static Screen screen_
 The screen.
 
static std::shared_ptr< Updaterupdater_
 The updater to use.
 
static std::shared_ptr< ScreenGvascreen_render_
 The screen render object.
 
static std::shared_ptr< rendererMapmap_
 A map object.
 
static GvaFunctionEnum lastState_
 The last state.
 
static bool alarmson_ = false
 True is alarms being displayed.
 

Detailed Description

The COM state.

Member Function Documentation

◆ entry()

void gva::StateCOM::entry ( void  )
overridevirtual

entry actions in some States

Reimplemented from gva::Hmi.

◆ react() [1/11]

void gva::StateCOM::react ( EventKeyAlarms const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [2/11]

void gva::StateCOM::react ( EventKeyBMS const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [3/11]

void gva::StateCOM::react ( EventKeyCOM const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [4/11]

void gva::StateCOM::react ( EventKeyDEF const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [5/11]

void gva::StateCOM::react ( EventKeyDRV const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [6/11]

void gva::StateCOM::react ( EventKeyFunction const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [7/11]

void gva::StateCOM::react ( EventKeyPowerOn const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [8/11]

void gva::StateCOM::react ( EventKeySA const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [9/11]

void gva::StateCOM::react ( EventKeySTR const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [10/11]

void gva::StateCOM::react ( EventKeySYS const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.

◆ react() [11/11]

void gva::StateCOM::react ( EventKeyWPN const )
overridevirtual

Nothing to do in base class.

Reimplemented from gva::Hmi.


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