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

Class defining the updater. More...

#include <updater.h>

Inheritance diagram for gva::Updater:
Inheritance graph
Collaboration diagram for gva::Updater:
Collaboration graph

Public Member Functions

 Updater (uint64_t id)
 Construct a new Updater object.
 
void RegisterWidgets (std::map< widget::WidgetEnum, std::shared_ptr< WidgetX > > &widget_list)
 Register the widgets to be updated.
 
void UpdateState (std::string state) final
 Update the HMI state.
 
void Event (std::string event) final
 Process at HMI event.
 
- Public Member Functions inherited from gva::UpdaterBase
 UpdaterBase (uint64_t id)
 Construct a new Updater object.
 
virtual ~UpdaterBase ()=default
 Destroy the Updater Base object.
 

Static Public Member Functions

static void WidgetUpdaterThread (std::map< widget::WidgetEnum, std::shared_ptr< WidgetX > > *widget_list)
 The updater thread.
 

Static Public Attributes

static bool running_ = false
 Set to false to terminate thread.
 

Detailed Description

Class defining the updater.

Constructor & Destructor Documentation

◆ Updater()

gva::Updater::Updater ( uint64_t  id)
explicit

Construct a new Updater object.

Parameters
idThe HMI identity, will only get updates for this ID.

Member Function Documentation

◆ Event()

void gva::Updater::Event ( std::string  event)
finalvirtual

Process at HMI event.

Parameters
event

Implements gva::UpdaterBase.

◆ UpdateState()

void gva::Updater::UpdateState ( std::string  state)
finalvirtual

Update the HMI state.

Parameters
stateThe new state

Implements gva::UpdaterBase.

◆ WidgetUpdaterThread()

void gva::Updater::WidgetUpdaterThread ( std::map< widget::WidgetEnum, std::shared_ptr< WidgetX > > *  widget_list)
static

The updater thread.

Parameters
widget_listThe widgets list pointer
Returns
void*

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