game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
EnvVarMapping Struct Reference

Maps a checkbox to its corresponding environment variable. More...

#include <env_var_mapping.h>

Collaboration diagram for EnvVarMapping:

Public Member Functions

bool isSetIn (const std::map< std::string, std::string > &envVars) const

Public Attributes

bool * boolFlag
EnvVarCheckBox ** checkbox
QString envKey
QString envValue

Detailed Description

Maps a checkbox to its corresponding environment variable.

This struct enables data-driven management of environment variable checkboxes, replacing hundreds of lines of if-else chains with a simple loop over mappings.

Definition at line 26 of file env_var_mapping.h.

Member Function Documentation

◆ isSetIn()

bool EnvVarMapping::isSetIn ( const std::map< std::string, std::string > & envVars) const
inline

Definition at line 34 of file env_var_mapping.h.

References envKey, and envValue.

Member Data Documentation

◆ boolFlag

bool* EnvVarMapping::boolFlag

Definition at line 31 of file env_var_mapping.h.

◆ checkbox

EnvVarCheckBox** EnvVarMapping::checkbox

Definition at line 30 of file env_var_mapping.h.

◆ envKey

QString EnvVarMapping::envKey

Definition at line 28 of file env_var_mapping.h.

Referenced by isSetIn().

◆ envValue

QString EnvVarMapping::envValue

Definition at line 29 of file env_var_mapping.h.

Referenced by isSetIn().


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