This option controls whether scientific notation may be used as appropriate
when writing floating point values (corresponding to <code>printf()</code>
‘<samp>%g</samp>’ format) or should never be used (corresponding to <code>printf()</code>
‘<samp>%f</samp>’ format). By default this option is turned off.
...
...
@@ -1795,20 +1814,34 @@ when writing floating point values (corresponding to <code>printf()</code>
</dd></dl>
<dl>
<dt><aname="index-getOption-on-Config"></a>Method on Config: <em>bool</em><strong>getOption</strong><em>(Config::Option <var>option</var><!-- /@w -->) const</em></dt>
<dt><aname="index-setOption-on-Config"></a>Method on Config: <em>void</em><strong>setOption</strong><em>(Config::Option <var>option</var><!-- /@w -->, bool <var>flag</var><!-- /@w -->)</em></dt>
<dd>
<p><b>Since <i>v1.7</i></b>
</p>
<p>These methods get and set the option <var>option</var> for the configuration. The
option is enabled if <var>flag</var> is <code>true</code> and disabled if it is
<code>false</code>.
</p>
<p>See <code>setOptions()</code> above for the list of available options.
</p>
</dd></dl>
<dl>
<dt><aname="index-getAutoConvert-on-Config"></a>Method on Config: <em>bool</em><strong>getAutoConvert</strong><em>() const</em></dt>
<dt><aname="index-setAutoConvert-on-Config"></a>Method on Config: <em>void</em><strong>setAutoConvert</strong><em>(bool <var>flag</var>)</em></dt>
<dt><aname="index-getAutoConvert-on-Config"></a>Method on Config: <em>bool</em><strong>getAutoConvert</strong><em>()</em></dt>
<dd>
<p>These methods get and set the <code>OptionAutoConvert</code> option. They
are obsoleted by the <code>setOptions()</code> and <code>getOptions()</code>
are obsoleted by the <code>setOption()</code> and <code>getOption()</code>
methods described above.
</p>
</dd></dl>
<dl>
<dt><aname="index-getDefaultFormat-on-Config"></a>Method on Config: <em>Setting::Format</em><strong>getDefaultFormat</strong><em>() const</em></dt>
<dt><aname="index-setDefaultFormat-on-Config"></a>Method on Config: <em>void</em><strong>setDefaultFormat</strong><em>(Setting::Format <var>format</var><!-- /@w -->)</em></dt>
<dt><aname="index-getDefaultFormat-on-Config"></a>Method on Config: <em>Setting::Format</em><strong>getDefaultFormat</strong><em>()</em></dt>
<dd>
<p>These methods set and get the default external format for settings in
<p>These methods get and set the default external format for settings in
the configuration. If a non-default format has not been set for a
setting with <code>Setting::setFormat()</code>, this configuration-wide
default format will be used instead when that setting is written to a
...
...
@@ -1817,10 +1850,10 @@ file or stream.
</dd></dl>
<dl>
<dt><aname="index-getTabWidth-on-Config"></a>Method on Config: <em>unsigned short</em><strong>getTabWidth</strong><em>() const</em></dt>
<dt><aname="index-setTabWidth-on-Config"></a>Method on Config: <em>void</em><strong>setTabWidth</strong><em>(unsigned short <var>width</var><!-- /@w -->)</em></dt>
<dt><aname="index-getTabWidth-on-Config"></a>Method on Config: <em>unsigned short</em><strong>getTabWidth</strong><em>()</em></dt>
<dd>
<p>These methods set and get the tab width for the configuration. The tab
<p>These methods get and set the tab width for the configuration. The tab
width affects the formatting of the configuration when it is written
to a file or stream: each level of nesting is indented by <var>width</var>
spaces, or by a single tab character if <var>width</var> is 0. The tab
...
...
@@ -1831,10 +1864,10 @@ width has no effect on parsing.
</dd></dl>
<dl>
<dt><aname="index-getFloatPrecision-on-Config"></a>Method on Config: <em>unsigned short</em><strong>getFloatPrecision</strong><em>() const</em></dt>
<dt><aname="index-setFloatPrecision-on-Config"></a>Method on Config: <em>void</em><strong>setFloatPrecision</strong><em>(unsigned short <var>width</var><!-- /@w -->)</em></dt>
<dt><aname="index-getFloatPrecision-on-Config"></a>Method on Config: <em>unsigned short</em><strong>getFloatPrecision</strong><em>()</em></dt>
<dd>
<p>These methods set and get the float precision for the configuration.
<p>These methods get and set the float precision for the configuration.
This parameter influences the formatting of floating point settings in
the configuration when it is written to a file or stream.
Float precision has no effect on parsing.
...
...
@@ -1845,15 +1878,15 @@ though the library will accept and store values up to 255.
</dd></dl>
<dl>
<dt><aname="index-getRoot-on-Config"></a>Method on Config: <em>Setting &</em><strong>getRoot</strong><em>()</em></dt>
<dt><aname="index-getRoot-on-Config"></a>Method on Config: <em>Setting &</em><strong>getRoot</strong><em>() const</em></dt>
<dd>
<p>This method returns the root setting for the configuration, which is a group.
</p>
</dd></dl>
<dl>
<dt><aname="index-lookup-on-Config"></a>Method on Config: <em>Setting &</em><strong>lookup</strong><em>(const std::string &<var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookup-on-Config-1"></a>Method on Config: <em>Setting &</em><strong>lookup</strong><em>(const char * <var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookup-on-Config"></a>Method on Config: <em>Setting &</em><strong>lookup</strong><em>(const std::string &<var>path</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookup-on-Config-1"></a>Method on Config: <em>Setting &</em><strong>lookup</strong><em>(const char * <var>path</var><!-- /@w -->) const</em></dt>
<dd>
<p>These methods locate the setting specified by the path <var>path</var>. If
the requested setting is not found, a <code>SettingNotFoundException</code> is
...
...
@@ -1861,8 +1894,8 @@ thrown.
</p>
</dd></dl>
<dl>
<dt><aname="index-exists-on-Config"></a>Method on Config: <em>bool</em><strong>exists</strong><em>(const std::string &<var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-exists-on-Config-1"></a>Method on Config: <em>bool</em><strong>exists</strong><em>(const char *<var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-exists-on-Config"></a>Method on Config: <em>bool</em><strong>exists</strong><em>(const std::string &<var>path</var><!-- /@w -->) const</em></dt>
<dt><aname="index-exists-on-Config-1"></a>Method on Config: <em>bool</em><strong>exists</strong><em>(const char *<var>path</var><!-- /@w -->) const</em></dt>
<dd>
<p>These methods test if a setting with the given <var>path</var> exists in
the configuration. They return <code>true</code> if the setting exists, and
...
...
@@ -1871,22 +1904,22 @@ the configuration. They return <code>true</code> if the setting exists, and
</dd></dl>
<dl>
<dt><aname="index-lookupValue-on-Config"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-1"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-2"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-3"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-4"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-5"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-6"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-7"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-8"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, float &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-9"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, float &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-10"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, double &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-11"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, double &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-12"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-13"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-14"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config-15"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Config"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-1"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-2"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-3"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-4"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-5"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-6"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-7"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-8"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, float &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-9"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, float &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-10"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, double &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-11"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, double &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-12"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-13"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-14"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>path</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Config-15"></a>Method on Config: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>path</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->) const</em></dt>
<dd>
<p>These are convenience methods for looking up the value of a setting
with the given <var>path</var>. If the setting is found and is of an
...
...
@@ -1933,18 +1966,18 @@ remaining lookups are skipped entirely.
</dd></dl>
<dl>
<dt><aname="index-operator-bool-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator bool ()</strong></dt>
<dt><aname="index-operator-int-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator int ()</strong></dt>
<dt><aname="index-operator-unsigned-int-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned int ()</strong></dt>
<dt><aname="index-operator-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator long ()</strong></dt>
<dt><aname="index-operator-unsigned-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned long ()</strong></dt>
<dt><aname="index-operator-long-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator long long ()</strong></dt>
<dt><aname="index-operator-unsigned-long-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned long long ()</strong></dt>
<dt><aname="index-operator-float-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator float ()</strong></dt>
<dt><aname="index-operator-double-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator double ()</strong></dt>
<dt><aname="index-operator-const-char-_002a-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator const char * ()</strong></dt>
<dt><aname="index-operator-std_003a_003astring-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator std::string ()</strong></dt>
<dt><aname="index-c_005fstr-on-Setting"></a>Method on Setting: <em>const char *</em><strong>c_str</strong><em>()</em></dt>
<dt><aname="index-operator-bool-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator bool ()</strong><em>const</em></dt>
<dt><aname="index-operator-int-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator int ()</strong><em>const</em></dt>
<dt><aname="index-operator-unsigned-int-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned int ()</strong><em>const</em></dt>
<dt><aname="index-operator-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator long ()</strong><em>const</em></dt>
<dt><aname="index-operator-unsigned-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned long ()</strong><em>const</em></dt>
<dt><aname="index-operator-long-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator long long ()</strong><em>const</em></dt>
<dt><aname="index-operator-unsigned-long-long-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator unsigned long long ()</strong><em>const</em></dt>
<dt><aname="index-operator-float-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator float ()</strong><em>const</em></dt>
<dt><aname="index-operator-double-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator double ()</strong><em>const</em></dt>
<dt><aname="index-operator-const-char-_002a-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator const char * ()</strong><em>const</em></dt>
<dt><aname="index-operator-std_003a_003astring-_0028_0029-on-Setting"></a>Method on Setting: <em></em><strong>operator std::string ()</strong><em>const</em></dt>
<dt><aname="index-c_005fstr-on-Setting"></a>Method on Setting: <em>const char *</em><strong>c_str</strong><em>() const</em></dt>
<dd>
<p>These cast operators allow a <code>Setting</code> object to be assigned to a
variable of type <i>bool</i> if it is of type <code>TypeBoolean</code>;
...
...
@@ -2069,9 +2102,9 @@ setting = 1024;
</dd></dl>
<dl>
<dt><aname="index-operator_005b_005d-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(int <var>index</var><!-- /@w -->)</em></dt>
<dt><aname="index-operator_005b_005d-on-Setting-1"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(const std::string &<var>name</var><!-- /@w -->)</em></dt>
<dt><aname="index-operator_005b_005d-on-Setting-2"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(const char *<var>name</var><!-- /@w -->)</em></dt>
<dt><aname="index-operator_005b_005d-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(int <var>index</var><!-- /@w -->) const</em></dt>
<dt><aname="index-operator_005b_005d-on-Setting-1"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(const std::string &<var>name</var><!-- /@w -->) const</em></dt>
<dt><aname="index-operator_005b_005d-on-Setting-2"></a>Method on Setting: <em>Setting &</em><strong>operator[]</strong><em>(const char *<var>name</var><!-- /@w -->) const</em></dt>
<dd>
<p>A <code>Setting</code> object may be subscripted with an integer index
<var>index</var> if it is an array or list, or with either a string
...
...
@@ -2098,8 +2131,8 @@ configuration.
</dd></dl>
<dl>
<dt><aname="index-lookup-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>lookup</strong><em>(const char * <var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookup-on-Setting-1"></a>Method on Setting: <em>Setting &</em><strong>lookup</strong><em>(const std::string &<var>path</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookup-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>lookup</strong><em>(const char * <var>path</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookup-on-Setting-1"></a>Method on Setting: <em>Setting &</em><strong>lookup</strong><em>(const std::string &<var>path</var><!-- /@w -->) const</em></dt>
<dd>
<p>This function locates a setting by a path <var>path</var> relative to
this setting. If requested setting is not found, a
...
...
@@ -2108,24 +2141,24 @@ this setting. If requested setting is not found, a
</dd></dl>
<dl>
<dt><aname="index-lookupValue-on-Setting"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-1"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-2"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-3"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-4"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-5"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-6"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-7"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-8"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, unsigned long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-9"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, unsigned long long &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-10"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, float &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-11"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, float &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-12"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, double &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-13"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, double &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-14"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-15"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-16"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting-17"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->)</em></dt>
<dt><aname="index-lookupValue-on-Setting"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-1"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, bool &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-2"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-3"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-4"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-5"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, unsigned int &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-6"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-7"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-8"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, unsigned long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-9"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, unsigned long long &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-10"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, float &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-11"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, float &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-12"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, double &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-13"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, double &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-14"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-15"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, const char *&<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-16"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const char *<var>name</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->) const</em></dt>
<dt><aname="index-lookupValue-on-Setting-17"></a>Method on Setting: <em>bool</em><strong>lookupValue</strong><em>(const std::string &<var>name</var><!-- /@w -->, std::string &<var>value</var><!-- /@w -->) const</em></dt>
<dd>
<p>These are convenience methods for looking up the value of a child setting
with the given <var>name</var>. If the setting is found and is of an
...
...
@@ -2234,7 +2267,7 @@ a <code>SettingNotFoundException</code> is thrown.
</dd></dl>
<dl>
<dt><aname="index-getName-on-Setting"></a>Method on Setting: <em>const char *</em><strong>getName</strong><em>()</em></dt>
<dt><aname="index-getName-on-Setting"></a>Method on Setting: <em>const char *</em><strong>getName</strong><em>() const</em></dt>
<dd>
<p>This method returns the name of the setting, or <code>NULL</code> if the
setting has no name. Storage for the returned string is managed by the
...
...
@@ -2245,7 +2278,7 @@ consider assigning the return value to a <code>std::string</code>.
</dd></dl>
<dl>
<dt><aname="index-getPath-on-Setting"></a>Method on Setting: <em>std::string</em><strong>getPath</strong><em>()</em></dt>
<dt><aname="index-getPath-on-Setting"></a>Method on Setting: <em>std::string</em><strong>getPath</strong><em>() const</em></dt>
<dd>
<p>This method returns the complete dot-separated path to the
setting. Settings which do not have a name (list and array elements)
...
...
@@ -2254,7 +2287,7 @@ are represented by their index in square brackets.
</dd></dl>
<dl>
<dt><aname="index-getParent-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>getParent</strong><em>()</em></dt>
<dt><aname="index-getParent-on-Setting"></a>Method on Setting: <em>Setting &</em><strong>getParent</strong><em>() const</em></dt>
<dd>
<p>This method returns the parent setting of the setting. If the setting
is the root setting, a <code>SettingNotFoundException</code> is thrown.
...
...
@@ -2262,7 +2295,7 @@ is the root setting, a <code>SettingNotFoundException</code> is thrown.
</dd></dl>
<dl>
<dt><aname="index-isRoot-on-Setting"></a>Method on Setting: <em>bool</em><strong>isRoot</strong><em>()</em></dt>
<dt><aname="index-isRoot-on-Setting"></a>Method on Setting: <em>bool</em><strong>isRoot</strong><em>() const</em></dt>
<dd>
<p>This method returns <code>true</code> if the setting is the root setting, and
<code>false</code> otherwise.
...
...
@@ -2270,7 +2303,7 @@ is the root setting, a <code>SettingNotFoundException</code> is thrown.
</dd></dl>
<dl>
<dt><aname="index-getIndex-on-Setting"></a>Method on Setting: <em>int</em><strong>getIndex</strong><em>()</em></dt>
<dt><aname="index-getIndex-on-Setting"></a>Method on Setting: <em>int</em><strong>getIndex</strong><em>() const</em></dt>
<dd>
<p>This method returns the index of the setting within its parent
setting. When applied to the root setting, this method returns -1.
...
...
@@ -2278,7 +2311,7 @@ setting. When applied to the root setting, this method returns -1.
</dd></dl>
<dl>
<dt><aname="index-getType-on-Setting"></a>Method on Setting: <em>Setting::Type</em><strong>getType</strong><em>()</em></dt>
<dt><aname="index-getType-on-Setting"></a>Method on Setting: <em>Setting::Type</em><strong>getType</strong><em>() const</em></dt>
<dd>
<aname="index-Setting_003a_003aType"></a>
<p>This method returns the type of the setting. The
...
...
@@ -2290,7 +2323,7 @@ setting. When applied to the root setting, this method returns -1.
</dd></dl>
<dl>
<dt><aname="index-getFormat-on-Setting"></a>Method on Setting: <em>Setting::Format</em><strong>getFormat</strong><em>()</em></dt>
<dt><aname="index-getFormat-on-Setting"></a>Method on Setting: <em>Setting::Format</em><strong>getFormat</strong><em>() const</em></dt>
<dt><aname="index-setFormat-on-Setting"></a>Method on Setting: <em>void</em><strong>setFormat</strong><em>(Setting::Format <var>format</var><!-- /@w -->)</em></dt>
<dd>
<p>These methods get and set the external format for the setting.
...
...
@@ -2327,7 +2360,7 @@ or group, they throw a <code>SettingTypeException</code>.
</dd></dl>
<dl>
<dt><aname="index-getLength-on-Setting"></a>Method on Setting: <em>int</em><strong>getLength</strong><em>()</em></dt>
<dt><aname="index-getLength-on-Setting"></a>Method on Setting: <em>int</em><strong>getLength</strong><em>() const</em></dt>
<dd>
<p>This method returns the number of settings in a group, or the number of
elements in a list or array. For other types of settings, it returns
...
...
@@ -2336,18 +2369,18 @@ elements in a list or array. For other types of settings, it returns
</dd></dl>
<dl>
<dt><aname="index-isGroup-on-Setting"></a>Method on Setting: <em>bool</em><strong>isGroup</strong><em>()</em></dt>
<dt><aname="index-isArray-on-Setting"></a>Method on Setting: <em>bool</em><strong>isArray</strong><em>()</em></dt>
<dt><aname="index-isList-on-Setting"></a>Method on Setting: <em>bool</em><strong>isList</strong><em>()</em></dt>
<dt><aname="index-isGroup-on-Setting"></a>Method on Setting: <em>bool</em><strong>isGroup</strong><em>() const</em></dt>
<dt><aname="index-isArray-on-Setting"></a>Method on Setting: <em>bool</em><strong>isArray</strong><em>() const</em></dt>
<dt><aname="index-isList-on-Setting"></a>Method on Setting: <em>bool</em><strong>isList</strong><em>() const</em></dt>
<dd>
<p>These convenience methods test if a setting is of a given type.
</p>
</dd></dl>
<dl>
<dt><aname="index-isAggregate-on-Setting"></a>Method on Setting: <em>bool</em><strong>isAggregate</strong><em>()</em></dt>
<dt><aname="index-isScalar-on-Setting"></a>Method on Setting: <em>bool</em><strong>isScalar</strong><em>()</em></dt>
<dt><aname="index-isNumber-on-Setting"></a>Method on Setting: <em>bool</em><strong>isNumber</strong><em>()</em></dt>
<dt><aname="index-isAggregate-on-Setting"></a>Method on Setting: <em>bool</em><strong>isAggregate</strong><em>() const</em></dt>
<dt><aname="index-isScalar-on-Setting"></a>Method on Setting: <em>bool</em><strong>isScalar</strong><em>() const</em></dt>
<dt><aname="index-isNumber-on-Setting"></a>Method on Setting: <em>bool</em><strong>isNumber</strong><em>() const</em></dt>
<dd>
<p>These convenience methods test if a setting is of an aggregate type (a
group, array, or list), of a scalar type (integer, 64-bit integer,
...
...
@@ -2357,7 +2390,7 @@ integer, or floating point), respectively.
</dd></dl>
<dl>
<dt><aname="index-getSourceFile-on-Setting"></a>Method on Setting: <em>const char *</em><strong>getSourceFile</strong><em>()</em></dt>
<dt><aname="index-getSourceFile-on-Setting"></a>Method on Setting: <em>const char *</em><strong>getSourceFile</strong><em>() const</em></dt>
<dd>
<p>This function returns the name of the file from which the setting was
read, or NULL if the setting was not read from a file. This
...
...
@@ -2369,7 +2402,7 @@ not be freed by the caller.
</dd></dl>
<dl>
<dt><aname="index-getSourceLine-on-Setting"></a>Method on Setting: <em>unsigned int</em><strong>getSourceLine</strong><em>()</em></dt>
<dt><aname="index-getSourceLine-on-Setting"></a>Method on Setting: <em>unsigned int</em><strong>getSourceLine</strong><em>() const</em></dt>
<dd>
<p>This function returns the line number of the configuration file or
stream at which the setting <var>setting</var> was read, or 0 if no line
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005ffloat_005fprecision_0028config_005ft-_002aconfig_0029"><code>config_get_float_precision(<spanclass="nolinebreak">config_t</span> *<var>config</var><!-- /@w -->)</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005fhook"><code>config_get_hook</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005finclude_005fdir"><code>config_get_include_dir</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005foption"><code>config_get_option</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005foptions"><code>config_get_options</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fget_005ftab_005fwidth"><code>config_get_tab_width</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005finit"><code>config_init</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005fhook"><code>config_set_hook</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005finclude_005fdir"><code>config_set_include_dir</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005finclude_005ffunc"><code>config_set_include_func</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005foption"><code>config_set_option</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005foptions"><code>config_set_options</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fset_005ftab_005fwidth"><code>config_set_tab_width</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005fwrite"><code>config_write</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getLength-on-Setting"><code>getLength on Setting</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getLine-on-ParseException"><code>getLine on ParseException</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getName-on-Setting"><code>getName on Setting</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getOption-on-Config"><code>getOption on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getOptions-on-Config"><code>getOptions on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getParent-on-Setting"><code>getParent on Setting</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-getPath-on-Setting"><code>getPath on Setting</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setFloatPrecision-on-Config"><code>setFloatPrecision on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setFormat-on-Setting"><code>setFormat on Setting</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setIncludeDir-on-Config"><code>setIncludeDir on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setOption-on-Config"><code>setOption on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setOptions-on-Config"><code>setOptions on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-setTabWidth-on-Config"><code>setTabWidth on Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-SettingNameException-on-SettingNameException"><code>SettingNameException on SettingNameException</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-Config"><code>Config</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-Config_003a_003aOption"><code>Config::Option</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-ConfigException"><code>ConfigException</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C_002b_002b-API">The C++ API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005ferror_005ft"><code>config_error_t</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>
<tr><td></td><tdvalign="top"><ahref="#index-config_005finclude_005ffn_005ft"><code>config_include_fn_t</code></a>:</td><td> </td><tdvalign="top"><ahref="#The-C-API">The C API</a></td></tr>