xtd
0.2.0
Loading...
Searching...
No Matches
◆
auto_save()
[2/2]
void xtd::configuration::file_settings::auto_save
(
bool
value
)
noexcept
Sets whether save should be called on the
xtd::configuration::file_settings
destructor.
Parameters
value
true if
xtd::configuration::file_settings::save
is called on the
xtd::configuration::file_settings
destructor; otherwise, false.
Remarks
The default is false.
Examples
The following example shows how to create
xtd::configuration::file_settings
and use
xtd::configuration::file_settings::auto_save
property,
xtd::configuration::file_settings::write
methods.
auto
file =
file_settings
{
"my_app.ini"
};
file.
auto_save
(
true
);
file.write(
"pictures \"Menu\""
,
"file_open"
,
"resources/symbolic_open.png"
);
file.write(
"pictures \"Menu\""
,
"file_save"
,
"resources/symbolic_save.png"
);
xtd::configuration::file_settings::auto_save
bool auto_save() const noexcept
Gets whether save should be called on the xtd::configuration::file_settings destructor.
xtd::configuration::file_settings
Represents an object for storing and retrieving configuration information using text files in INI for...
Definition
file_settings.h:32
my_app.ini:
[pictures "Menu"]
file_open = resources/symbolic_open.png
file_save = resources/symbolic_save.png
xtd
configuration
file_settings
Generated on Sat Sep 14 2024 21:25:19 for xtd by
Gammasoft
. All rights reserved.