Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
gva::StatusUpdater Class Reference

Class defining the status updater. More...

#include <status_updater.h>

Collaboration diagram for gva::StatusUpdater:
Collaboration graph

Public Member Functions

 StatusUpdater ()=default
 Construct a new Status Updater object.
 
 ~StatusUpdater ()=default
 Destroy the Status Updater object.
 
void ClockUpdate (ClockArgs *args)
 Update the clock.
 
void GetLocalTime (std::tm *localTime) const
 Get the Local Time attribute.
 
void UpdateClock (std::shared_ptr< WidgetStatusBar > statusBar) const
 Update the clock and the rest of the status bar settings.
 
void ParseGpsData (const int *gps_file_descriptor, nmeaINFO *info, nmeaPARSER *parser, const LocationType &location) const
 Parse the GPS data.
 
void UpdateLocation (std::shared_ptr< WidgetStatusBar > statusBar, const nmeaINFO &info, const LocationType &location) const
 Update the location.
 

Detailed Description

Class defining the status updater.

Member Function Documentation

◆ ClockUpdate()

void gva::StatusUpdater::ClockUpdate ( ClockArgs args)

Update the clock.

Parameters
argsthe arguments that need to be updated

◆ GetLocalTime()

void gva::StatusUpdater::GetLocalTime ( std::tm *  localTime) const

Get the Local Time attribute.

Parameters
localTime(out) the structure containing the time

◆ ParseGpsData()

void gva::StatusUpdater::ParseGpsData ( const int *  gps_file_descriptor,
nmeaINFO *  info,
nmeaPARSER *  parser,
const LocationType location 
) const

Parse the GPS data.

Parameters
gps_file_descriptorthe GPS file descriptor
infothe NMEA information
parserthe current NMEA parser
locationthe location presentation type

◆ UpdateClock()

void gva::StatusUpdater::UpdateClock ( std::shared_ptr< WidgetStatusBar statusBar) const

Update the clock and the rest of the status bar settings.

Parameters
statusBarthe stsus bar being updated

◆ UpdateLocation()

void gva::StatusUpdater::UpdateLocation ( std::shared_ptr< WidgetStatusBar statusBar,
const nmeaINFO &  info,
const LocationType location 
) const

Update the location.

Parameters
statusBarthe information being updated
infonew NMEA information
locationthe location presentation type

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