Derived class for loading INI files without going through Fio stuff.
More...
|
|
using | IniGroupNameList = std::initializer_list< std::string_view > |
| |
|
std::list< IniGroup > | groups |
| | all groups in the ini
|
| |
|
std::string | comment |
| | last comment in file
|
| |
|
const IniGroupNameList | list_group_names |
| | list of group names that are lists
|
| |
|
const IniGroupNameList | seq_group_names |
| | list of group names that are sequences.
|
| |
Derived class for loading INI files without going through Fio stuff.
Definition at line 151 of file settingsgen.cpp.
◆ SettingsIniFile()
| SettingsIniFile::SettingsIniFile |
( |
const IniGroupNameList & |
list_group_names = {}, |
|
|
const IniGroupNameList & |
seq_group_names = {} |
|
) |
| |
|
inline |
Construct a new ini loader.
- Parameters
-
| list_group_names | A list with group names that should be loaded as lists instead of variables. |
- See also
- IGT_LIST
- Parameters
-
| seq_group_names | A list with group names that should be loaded as lists of names. |
- See also
- IGT_SEQUENCE
Definition at line 157 of file settingsgen.cpp.
◆ OpenFile()
| FILE* SettingsIniFile::OpenFile |
( |
const std::string & |
filename, |
|
|
Subdirectory |
subdir, |
|
|
size_t * |
size |
|
) |
| |
|
inlineoverridevirtual |
Open the INI file.
- Parameters
-
| filename | Name of the INI file. |
| subdir | The subdir to load the file from. |
| [out] | size | Size of the opened file. |
- Returns
- File handle of the opened file, or
nullptr.
Implements IniLoadFile.
Definition at line 162 of file settingsgen.cpp.
◆ ReportFileError()
| void SettingsIniFile::ReportFileError |
( |
const char *const |
pre, |
|
|
const char *const |
buffer, |
|
|
const char *const |
post |
|
) |
| |
|
inlineoverridevirtual |
Report an error about the file contents.
- Parameters
-
| pre | Prefix text of the buffer part. |
| buffer | Part of the file with the error. |
| post | Suffix text of the buffer part. |
Implements IniLoadFile.
Definition at line 176 of file settingsgen.cpp.
The documentation for this struct was generated from the following file: