company logo

IniFile :: optionValue - Get option value

The function searches for the option value in the currently selected section ( section() ) of the currently selected configuration ( configuration() ) . When the option has been found, the function returns the option value. When the option is not defined in the currently located section of the configuration, the function returns an empty option value.

Notes:

In case of xml configuration files, the option name may be passed as option name path with elements separated by dot.

Return value:  Option name ( odaba::String & )

Option names are names for variables (options) defined in the configuration or ini-file, in the system environment or set by the program. Option names can be provides as option paths in order to refer to an option value in the option hierarchy.

  option("DICTIONARY");

  option("ode.DICTIONARY");

Implementation details

odaba::String IniFile  :: optionValue ( odaba::String &sName )
  • sName - Name