xtd
0.2.0
Loading...
Searching...
No Matches
◆
operator[]()
[1/2]
const
string_dictionary
& xtd::configuration::file_settings::operator[]
(
const
xtd::string
&
section
)
const
noexcept
Gets key-value pairs of the specified section.
Parameters
secion
The section to get the key-value pairs
Returns
The key-value pairs of the section.
Examples
Use this operator to read value from section like
xtd::configuration::file_settings::read
method.
auto
fs =
file_settings
{
"my_file.ini"
};
auto
v1 = fs[
"section1"
][
"key1"
];
// Is equivalent to call :
// auto v1 = fs.read("section1", "key1", string::empty_string);
xtd::configuration::file_settings
Represents an object for storing and retrieving configuration information using text files in INI for...
Definition
file_settings.h:32
xtd
configuration
file_settings
Generated on Sat Sep 14 2024 21:25:19 for xtd by
Gammasoft
. All rights reserved.