IniFile to store a configuration.
More...
|
| | ConfigIniFile (const std::string &filename) |
| | IniFile (const IniGroupNameList &list_group_names={}) |
| | Create a new ini file with given group names.
|
| bool | SaveToDisk (const std::string &filename) |
| | Save the Ini file's data to the disk.
|
| std::optional< FileHandle > | OpenFile (std::string_view filename, Subdirectory subdir, size_t *size) override |
| | Open the INI file.
|
| void | ReportFileError (std::string_view message) override |
| | Report an error about the file contents.
|
| | IniLoadFile (const IniGroupNameList &list_group_names={}, const IniGroupNameList &seq_group_names={}) |
| | Construct a new in-memory Ini file representation.
|
|
virtual | ~IniLoadFile ()=default |
| | Ensure the destructor of the sub classes are called as well.
|
| const IniGroup * | GetGroup (std::string_view name) const |
| | Get the group with the given name.
|
| IniGroup * | GetGroup (std::string_view name) |
| | Get the group with the given name.
|
| IniGroup & | GetOrCreateGroup (std::string_view name) |
| | Get the group with the given name, and if it doesn't exist create a new group.
|
| IniGroup & | CreateGroup (std::string_view name) |
| | Create an group with the given name.
|
| void | RemoveGroup (std::string_view name) |
| | Remove the group with the given name.
|
| void | LoadFromDisk (std::string_view filename, Subdirectory subdir) |
| | Load the Ini file's data from the disk.
|
IniFile to store a configuration.
Definition at line 143 of file settings.cpp.
◆ ConfigIniFile()
| ConfigIniFile::ConfigIniFile |
( |
const std::string & | filename | ) |
|
|
inline |
◆ list_group_names
| const IniGroupNameList ConfigIniFile::list_group_names |
|
inlinestaticprivate |
Initial value: = {
"bans",
"newgrf",
"servers",
"server_bind_addresses",
"server_authorized_keys",
"rcon_authorized_keys",
"admin_authorized_keys"
}
Definition at line 145 of file settings.cpp.
The documentation for this class was generated from the following file: