|
OpenTTD Source
14.0-beta1
|
IniFile to store a configuration. More...
Public Member Functions | |
| ConfigIniFile (const std::string &filename) | |
Public Member Functions inherited from IniFile | |
| IniFile (const IniGroupNameList &list_group_names={}) | |
| Create a new ini file with given group names. More... | |
| bool | SaveToDisk (const std::string &filename) |
| Save the Ini file's data to the disk. More... | |
| FILE * | OpenFile (const std::string &filename, Subdirectory subdir, size_t *size) override |
| Open the INI file. More... | |
| void | ReportFileError (const char *const pre, const char *const buffer, const char *const post) override |
| Report an error about the file contents. More... | |
Public Member Functions inherited from IniLoadFile | |
| IniLoadFile (const IniGroupNameList &list_group_names={}, const IniGroupNameList &seq_group_names={}) | |
| Construct a new in-memory Ini file representation. More... | |
| const IniGroup * | GetGroup (const std::string &name) const |
| Get the group with the given name. More... | |
| IniGroup * | GetGroup (const std::string &name) |
| Get the group with the given name. More... | |
| IniGroup & | GetOrCreateGroup (const std::string &name) |
| Get the group with the given name, and if it doesn't exist create a new group. More... | |
| IniGroup & | CreateGroup (const std::string &name) |
| Create an group with the given name. More... | |
| void | RemoveGroup (const std::string &name) |
| Remove the group with the given name. More... | |
| void | LoadFromDisk (const std::string &filename, Subdirectory subdir) |
| Load the Ini file's data from the disk. More... | |
Static Private Attributes | |
| static const IniGroupNameList | list_group_names |
Additional Inherited Members | |
Public Types inherited from IniLoadFile | |
| using | IniGroupNameList = std::initializer_list< std::string_view > |
Data Fields inherited from IniLoadFile | |
| 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. | |
IniFile to store a configuration.
Definition at line 133 of file settings.cpp.
|
inlinestaticprivate |
Definition at line 135 of file settings.cpp.