xtd 0.2.0
Loading...
Searching...
No Matches

◆ auto_save() [1/2]

bool xtd::configuration::file_settings::auto_save ( ) const
noexcept

Gets whether save should be called on the xtd::configuration::file_settings destructor.

Returns
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");
bool auto_save() const noexcept
Gets whether save should be called on the xtd::configuration::file_settings destructor.
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