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::ConfigData Class Reference

Class defining the config data. More...

#include <config_reader.h>

Inheritance diagram for gva::ConfigData:
Inheritance graph
Collaboration diagram for gva::ConfigData:
Collaboration graph

Public Member Functions

 ConfigData (const ConfigData &other)=delete
 Singletons should not be cloneable.
 
void operator= (ConfigData &)=delete
 Singletons should not be assignable.
 
std::string GetConfigFilename () const
 Get the Config Filename object.
 
int GetZoom () const
 Get the Zoom object.
 
void SetZoom (int zoom) const
 Set the Zoom object.
 
double GetTestLon () const
 Get the Test Lon object.
 
void SetTestLon (double lon) const
 Set the Test Lon object.
 
double GetTestLat () const
 Get the Test Lat object.
 
void SetTestLat (double lat) const
 Set the Test Lat object.
 
bool GetFullscreen () const
 Get the Fullscreen object.
 
void SetFullscreen (bool fullscreen) const
 Set the Fullscreen object.
 
bool GetMapEnabled () const
 Get the Map Enabled object.
 
void SetMapEnabled (bool enabled) const
 Set the Map Enabled object.
 
std::string GetMapPath () const
 Get the Map Path for the installed OSMScout maps.
 
std::string GetStylesheetPath () const
 Get the Stylesheet Path for the OSMScout stylesheets.
 
std::string GetLogPath () const
 Get the Log Path object.
 
std::string GetLogFilename () const
 Get the Log Filename object.
 
std::string GetImagePath () const
 Get the Image Path object.
 
std::string GetGpsDevice () const
 Get the Gps Device path to virtual port.
 
std::string GetOdbDevice () const
 Get the Odb Device path to virtual port.
 
uint32_t GetKeyBinding (GvaKeyEnum key) const
 Get the Key Binding attribute.
 
double GetBrightness () const
 Get the Brightness attribute.
 
void SetBrightness (double brightness)
 Set the Brightness attribute.
 
- Public Member Functions inherited from gva::ConfigDataTheme
uint32_t GetThemeBackground () const
 Get the Theme Background object.
 
uint32_t GetTableBackground () const
 Get the Table Background object.
 
uint16_t GetThemeLabelStyle () const
 Get the Theme Label Style object.
 
uint32_t GetThemeLabelBackgroundEnabledSelectedChanging () const
 Get the Theme Label Background Enabled Selected Changing object.
 
uint32_t GetThemeLabelBackgroundEnabledSelected () const
 Get the Theme Label Background Enabled Selected object.
 
uint32_t GetThemeLabelBackgroundEnabled () const
 Get the Theme Label Background Active object.
 
uint32_t GetThemeLabelBackgroundDisabled () const
 Get the Theme Label Background Disabled object.
 
uint32_t GetThemeLabelTextEnabledSelectedChanging () const
 Get the Theme Label Text Enabled Selected Changing object.
 
uint32_t GetThemeLabelTextEnabledSelected () const
 Get the Theme Label Text Enabled Selected object.
 
uint32_t GetThemeLabelTextEnabled () const
 Get the Theme Label Text Enabled object.
 
uint32_t GetThemeLabelTextDisabled () const
 Get the Theme Label Text Disabled object.
 
uint32_t GetThemeLabelBorderEnabledSelectedChanging () const
 Get the Theme Label Border Enabled Selected Changing object.
 
uint32_t GetThemeLabelBorderEnabledSelected () const
 Get the Theme Label Border Enabled Selected object.
 
uint32_t GetThemeLabelBorderEnabled () const
 Get the Theme Label Border Enabled object.
 
uint32_t GetThemeLabelBorderDisabled () const
 Get the Theme Label Border Disabled object.
 
LineType GetThemeLabelLineEnabledSelectedChanging () const
 Get the Theme Label Line Enabled Selected Changing object.
 
LineType GetThemeLabelLineEnabledSelected () const
 Get the Theme Label Line Enabled Selected object.
 
LineType GetThemeLabelLineEnabled () const
 Get the Theme Label Line Enabled object.
 
LineType GetThemeLabelLineDisabled () const
 Get the Theme Label Line Disabled object.
 
widget::ModeEnum GetPpiMode () const
 Get the Ppi Mode object.
 
uint32_t GetThemeLabelBorderThickness () const
 Get the Theme Label Border Thickness object.
 
uint32_t GetThemeTableBorderThickness () const
 Get the Table Label Border Thickness object.
 
uint32_t GetThemeStatusBackground () const
 Get the Theme Status Background object.
 
uint32_t GetThemeStatusBorder () const
 Get the Theme Status Border object.
 
uint32_t GetThemeStatusText () const
 Get the Theme Status Text object.
 
uint32_t GetThemeAlert () const
 Get the Theme Alert object.
 
uint32_t GetThemeCritical () const
 Get the Theme Critical object.
 
std::string GetThemeFont () const
 Get the Theme Font object.
 
- Public Member Functions inherited from gva::ConfigDataBase
 ConfigDataBase ()
 Construct a new Config Data Base object.
 
 ~ConfigDataBase ()
 Destroy the Config Data object.
 
void WriteData () const
 Write contents of protobuf.
 

Static Public Member Functions

static ConfigDataGetInstance ()
 Get the Instance object.
 

Protected Member Functions

 ConfigData ()=default
 Construct a new Config Data object.
 
uint32_t LookupKey (config::Key key) const
 Lookup the actual key binding value from the config data.
 

Static Protected Attributes

static ConfigDataconfig_ = nullptr
 The config data singleton.
 

Additional Inherited Members

- Data Fields inherited from gva::ConfigDataBase
std::unique_ptr< config::Gva > current_config_
 CThe current config data.
 
std::string config_file_ = "config.pb"
 The default config data.
 

Detailed Description

Class defining the config data.

Member Function Documentation

◆ GetBrightness()

double gva::ConfigData::GetBrightness ( ) const

Get the Brightness attribute.

Returns
long

◆ GetFullscreen()

bool gva::ConfigData::GetFullscreen ( ) const

Get the Fullscreen object.

Returns
true
false

◆ GetGpsDevice()

std::string gva::ConfigData::GetGpsDevice ( ) const

Get the Gps Device path to virtual port.

Returns
std::string

◆ GetImagePath()

std::string gva::ConfigData::GetImagePath ( ) const

Get the Image Path object.

Returns
std::string

◆ GetInstance()

ConfigData * gva::ConfigData::GetInstance ( )
static

Get the Instance object.

On the first run, it creates a singleton object and places it into the static field. On subsequent runs, it returns the client existing object stored in the static field.

Returns
ConfigData*

◆ GetKeyBinding()

uint32_t gva::ConfigData::GetKeyBinding ( GvaKeyEnum  key) const

Get the Key Binding attribute.

Returns
uint32_t

◆ GetLogFilename()

std::string gva::ConfigData::GetLogFilename ( ) const

Get the Log Filename object.

Returns
std::string

◆ GetLogPath()

std::string gva::ConfigData::GetLogPath ( ) const

Get the Log Path object.

Returns
std::string

◆ GetMapEnabled()

bool gva::ConfigData::GetMapEnabled ( ) const

Get the Map Enabled object.

Returns
true
false

◆ GetMapPath()

std::string gva::ConfigData::GetMapPath ( ) const

Get the Map Path for the installed OSMScout maps.

Returns
std::string

◆ GetOdbDevice()

std::string gva::ConfigData::GetOdbDevice ( ) const

Get the Odb Device path to virtual port.

Returns
std::string

◆ GetStylesheetPath()

std::string gva::ConfigData::GetStylesheetPath ( ) const

Get the Stylesheet Path for the OSMScout stylesheets.

Returns
std::string

◆ GetTestLat()

double gva::ConfigData::GetTestLat ( ) const

Get the Test Lat object.

Returns
double

◆ GetTestLon()

double gva::ConfigData::GetTestLon ( ) const

Get the Test Lon object.

Returns
double

◆ GetZoom()

int gva::ConfigData::GetZoom ( ) const

Get the Zoom object.

Returns
int

◆ LookupKey()

uint32_t gva::ConfigData::LookupKey ( config::Key  key) const
protected

Lookup the actual key binding value from the config data.

Parameters
key
Returns
uint32_t

◆ SetBrightness()

void gva::ConfigData::SetBrightness ( double  brightness)

Set the Brightness attribute.

Parameters
brightness

◆ SetFullscreen()

void gva::ConfigData::SetFullscreen ( bool  fullscreen) const

Set the Fullscreen object.

Parameters
fullscreen

◆ SetTestLat()

void gva::ConfigData::SetTestLat ( double  lat) const

Set the Test Lat object.

Parameters
lat

◆ SetTestLon()

void gva::ConfigData::SetTestLon ( double  lon) const

Set the Test Lon object.

Parameters
lon

◆ SetZoom()

void gva::ConfigData::SetZoom ( int  zoom) const

Set the Zoom object.

Parameters
zoom

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