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
- Change current section by name
IniFile :: setSection ( sName ) - Change current section by position
IniFile :: setSection ( iPosition )
Implementation details
-
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
to list
- to list