56 void SetValue(
const wxString& aValue );
61 std::optional<wxString>
GetValue()
const;
KiCad uses environment variables internally for determining the base paths for libraries,...
void ClearItem()
Clear the environment variable for the lifetime of the object.
ENV_VAR_MAP & m_pgmEnvVars
SCOPED_PGM_ENV_VAR & operator=(const SCOPED_PGM_ENV_VAR &)=delete
std::optional< ENV_VAR_ITEM > m_oldValue
SCOPED_PGM_ENV_VAR(const SCOPED_PGM_ENV_VAR &)=delete
ENV_VAR_ITEM & GetItem()
Get the wrapped environment variable item.
SCOPED_PGM_ENV_VAR(const wxString &aName, const std::optional< wxString > &aValue)
std::optional< wxString > m_oldValue
std::optional< wxString > GetValue() const
Get the current value of the environment variable, if it exists.
void ClearValue()
Clear the environment variable for the lifetime of this object.
~SCOPED_PROCESS_ENV_VAR()
void SetValue(const wxString &aValue)
Set a new value for the environment variable (which will still only be in effect for the lifetime of ...
SCOPED_PROCESS_ENV_VAR(const SCOPED_PROCESS_ENV_VAR &)=delete
SCOPED_PROCESS_ENV_VAR(const wxString &aName, const std::optional< wxString > &aValue)
SCOPED_PROCESS_ENV_VAR & operator=(const SCOPED_PROCESS_ENV_VAR &)=delete
std::map< wxString, ENV_VAR_ITEM > ENV_VAR_MAP