30 void setSetting(
const Identifier& key,
const var& value);
File m_jsonFile
The json file.
Definition JsonFile.h:60
A class to manage the settings.json file, derived privately from JsonFile.
Definition SettingsFile.h:10
void setDefaultIfVoid(const Identifier &key, const var &defaultValue)
Sets the default value (if required) associated with a given key in the settings.
Definition SettingsFile.cpp:97
String getSettingsVersion() const
Retrieves the settings version from the JSON data. This function retrieves the settings version from ...
Definition SettingsFile.cpp:64
void setSetting(const Identifier &key, const var &value)
Sets the value associated with a given key in the settings.
Definition SettingsFile.cpp:33
bool existsAsFile()
Checks if the associated JSON file exists as a file.
Definition SettingsFile.h:50
void setSettingsVersion(const String &version)
Sets the settings version in the JSON data. This function sets the settings version in the JSON data ...
Definition SettingsFile.cpp:83
var getSetting(const Identifier &key)
Retrieves the value associated with a given key.
Definition SettingsFile.cpp:11
SettingsFile(const File &settingsFile)
Constructor that initializes the SettingsFile with a given File object.
Definition SettingsFile.cpp:3
Definition AirAbsorptionFilter.cpp:2