Class IniFile
#include <IniFile.h >
Super class: XMLData
The IniFile class is used to read .ini files and provide methods to query values from its various sections.
The IniFile class reads a standard INI file format.
Syntax:
The first line of output is the headers:
AppName,Section,Variable,Value
where,
Header |
Description |
AppName |
The name of the application for these properties. |
Section |
The section (grouping) of the application for these properties. |
Variable |
The keyword for the property. |
Value |
The value of the property. |
const string& filename |
Default value: "" |
const string& newFilename |
const string& newComment |
const string& filename |
|
string basefilename |
Default value: "" |
Check getErrorMessage() to find out what went wrong
FILE* f |
|
const string& basefilename |
Default value: "" |
TextFile& f |
|
const string& basefilename |
Default value: "" |
const string& filename |
Default value: "" |
const string& newSection |
Default value: "" |
const string& variable |
Query an INI variable (after calling setSection() or setGlobal())
const string& variable |
const string& variable |
const string& variable |
const string& variable |
const string& variable |
Query an INI global variable
const string& variable |
const string& variable |
const string& variable |
Query list of all INI variable names (after calling setSection() or setGloal())
const string& section |
|
const string& variable |
Query an INI variable using section
const string& section |
|
const string& variable |
const string& section |
|
const string& variable |
const string& section |
|
const string& variable |
const string& section |
Query list of all INI variables for a section
const string& variable |
|
const string& value |
Set an INI variable's value (after calling setSection() or setGlobal()
const string& variable |
|
int value |
const string& variable |
|
float value |
const string& variable |
|
bool value |
const string& variable |
Unset an INI variable's value (after calling setSection() or setGlobal()
const string& section |
|
const string& variable |
const string& section |
|
const string& variable |
|
const string& value |
const string& section |
|
const string& variable |
|
int value |
const string& section |
|
const string& variable |
|
float value |
string inifilename |
|
string line1 |
comment |
string errmsg |
|
string section |
FILE* f |
string line |
int inputLineNo |
|
string filenamebase |
|
string section |
|
string line |