company logo

IniFile :: setSection - Change current section

The function changes the current section to the section passed as parameter. When the required section could be located, the function returns true and false otherwise.

Return value:  Success ( bool  )

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

Implementation overview

Implementation details

  1. Change current section by name
    bool IniFile  :: setSection ( odaba::String &sName )

    The function changes the current section to the section with the name passed in sName. When the section name is invalid, the function throws an exception. In order to access hierarchical sub-sections, a section name hierarchy may be passed by separating section levels by dots (XML configuration files, only).

    • sName - Name
  2. to list
  3. Change current section by position
    bool IniFile  :: setSection ( int32 iPosition )

    The section is changed to the section at position passed in iPosition.

    • iPosition - Position in collection

      The position of an element in a collection is beginning with 0 for the first element.

  4. to list