SettingsFile

Settings object whith file information

Constructors

this
this(string filename)

create settings file object; if filename is provided, attempts to load settings from file

Alias This

setting

Members

Functions

afterLoad
void afterLoad()

override to do something after loading - e.g. set defaults

afterSave
void afterSave()

override to do something after saving

load
bool load(string filename)

load settings from file

merge
bool merge(string json)
Undocumented in source. Be warned that the author may not have intended to support it.
replaceSetting
void replaceSetting(Setting s)

replace setting object

save
bool save(string filename, bool pretty)

save settings to file

updateDefaults
void updateDefaults()

override to add default values if missing

updateModificationTime
bool updateModificationTime()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

applySettings
Setting applySettings [@property setter]
Undocumented in source. Be warned that the author may not have intended to support it.
copySettings
Setting copySettings [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
filename
string filename [@property getter]

filename

filename
string filename [@property setter]

filename

loaded
bool loaded [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
setting
Setting setting [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Static functions

limitInt
int limitInt(long value, int minvalue, int maxvalue)
Undocumented in source. Be warned that the author may not have intended to support it.
limitString
string limitString(string value, string[] values)
Undocumented in source.

Variables

_filename
string _filename;
Undocumented in source.
_format
SettingsFileFormat _format;
Undocumented in source.
_lastModificationTime
SysTime _lastModificationTime;
Undocumented in source.
_loaded
bool _loaded;
Undocumented in source.
_setting
Setting _setting;
Undocumented in source.

Meta