company logo

IniFile :: locateSection - Locate section

The function allows checking, whether a section in a configuration file does exist or not.

Return value:  Success ( bool  )

The value is true when the function was executed successfully. Otherwise the value is set to false.

Implementation details

bool IniFile  :: locateSection ( odaba::String &sName )

The function checks whether the name passed in sName refers to a valid section in the configuration or ini-file. In order to access hierarchical sub-sections, a section name hierarchy may be passed by separating section levels by dots.

The function returns true, when the section could be located and false otherwise.

  • sName - Name