Class SettingsFile
Settings object whith file information
Inherits from
-
Object
(base class)
Constructors
Name | Description |
---|---|
this
|
create settings file object; if filename is provided, attempts to load settings from file
|
Fields
Name | Type | Description |
---|---|---|
_filename
|
string |
|
_lastModificationTime
|
std |
|
_loaded
|
bool |
|
_setting
|
Setting |
Properties
Name | Type | Description |
---|---|---|
applySettings
[set]
|
Setting |
|
copySettings
[get]
|
Setting |
|
filename
[get, set]
|
string |
filename
|
loaded
[get]
|
bool |
|
setting
[get]
|
Setting |
Methods
Name | Description |
---|---|
afterLoad
|
override to do something after loading - e.g. set defaults |
afterSave
|
override to do something after saving |
limitInt
|
|
limitString
|
|
load
|
load settings from file
|
merge
|
|
save
|
save settings to file
|
updateDefaults
|
override to add default values if missing |
updateModificationTime
|
Authors
Vadim Lopatin, coolreader.org@gmail.com
Copyright
Vadim Lopatin, 2014
License
Boost License 1.0