![]() |
Vivoe Lite 0.5.0
Lightweight GVA like HMI for military displays.
|
Class defining the config data. More...
#include <config_reader.h>
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. | |
![]() | |
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. | |
![]() | |
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 ConfigData * | GetInstance () |
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 ConfigData * | config_ = nullptr |
The config data singleton. | |
Additional Inherited Members | |
![]() | |
std::unique_ptr< config::Gva > | current_config_ |
CThe current config data. | |
std::string | config_file_ = "config.pb" |
The default config data. | |
Class defining the config data.
double gva::ConfigData::GetBrightness | ( | ) | const |
Get the Brightness attribute.
bool gva::ConfigData::GetFullscreen | ( | ) | const |
Get the Fullscreen object.
std::string gva::ConfigData::GetGpsDevice | ( | ) | const |
Get the Gps Device path to virtual port.
std::string gva::ConfigData::GetImagePath | ( | ) | const |
Get the Image Path object.
|
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.
uint32_t gva::ConfigData::GetKeyBinding | ( | GvaKeyEnum | key | ) | const |
Get the Key Binding attribute.
std::string gva::ConfigData::GetLogFilename | ( | ) | const |
Get the Log Filename object.
std::string gva::ConfigData::GetLogPath | ( | ) | const |
Get the Log Path object.
bool gva::ConfigData::GetMapEnabled | ( | ) | const |
Get the Map Enabled object.
std::string gva::ConfigData::GetMapPath | ( | ) | const |
Get the Map Path for the installed OSMScout maps.
std::string gva::ConfigData::GetOdbDevice | ( | ) | const |
Get the Odb Device path to virtual port.
std::string gva::ConfigData::GetStylesheetPath | ( | ) | const |
Get the Stylesheet Path for the OSMScout stylesheets.
double gva::ConfigData::GetTestLat | ( | ) | const |
Get the Test Lat object.
double gva::ConfigData::GetTestLon | ( | ) | const |
Get the Test Lon object.
int gva::ConfigData::GetZoom | ( | ) | const |
Get the Zoom object.
|
protected |
Lookup the actual key binding value from the config data.
key |
void gva::ConfigData::SetBrightness | ( | double | brightness | ) |
Set the Brightness attribute.
brightness |
void gva::ConfigData::SetFullscreen | ( | bool | fullscreen | ) | const |
Set the Fullscreen object.
fullscreen |
void gva::ConfigData::SetTestLat | ( | double | lat | ) | const |
Set the Test Lat object.
lat |
void gva::ConfigData::SetTestLon | ( | double | lon | ) | const |
Set the Test Lon object.
lon |
void gva::ConfigData::SetZoom | ( | int | zoom | ) | const |
Set the Zoom object.
zoom |