20#ifndef KICAD_ENVIRONMENT_H
21#define KICAD_ENVIRONMENT_H
62 ENV_VAR_ITEM(
const wxString& aValue = wxEmptyString,
bool aIsDefinedExternally =
false ) :
71 const wxString& aDefaultValue = wxEmptyString ) :
KiCad uses environment variables internally for determining the base paths for libraries,...
bool m_isDefinedInSettings
Flag to indicate if the environment variable was defined in the settings file.
wxString m_key
The environment variable string key.
void SetValue(const wxString &aValue)
bool m_isDefinedExternally
Flag to indicate if the environment variable was defined externally to the process.
wxString m_defaultValue
The default value, for built-in variables that are always defined.
bool GetDefinedExternally() const
wxString GetSettingsValue() const
wxString GetDefault() const
void SetDefinedExternally(bool aIsDefinedExternally=true)
bool m_isBuiltin
Set to true for KiCad built-in variables that are always defined one way or another.
void SetSettingsValue(const wxString &aValue)
wxString m_settingsValue
The value that was originally loaded from JSON.
const wxString & GetValue() const
ENV_VAR_ITEM(const wxString &aValue=wxEmptyString, bool aIsDefinedExternally=false)
ENV_VAR_ITEM(const wxString &aKey, const wxString &aValue, const wxString &aDefaultValue=wxEmptyString)
void SetDefinedInSettings(bool aDefined=true)
bool IsDefault() const
Checks if the variable matches its default value (always false for non-built-in vars)
wxString m_value
The environment variable string value.
bool GetDefinedInSettings() const
std::map< wxString, ENV_VAR_ITEM > ENV_VAR_MAP
std::map< wxString, ENV_VAR_ITEM >::const_iterator ENV_VAR_MAP_CITER
std::map< wxString, ENV_VAR_ITEM >::iterator ENV_VAR_MAP_ITER