|
OpenTTD Source
14.0-beta1
|
A single "line" in an ini file. More...
#include <ini_type.h>
Public Member Functions | |
| IniItem (const std::string &name) | |
| Construct a new in-memory item of an Ini file. More... | |
| void | SetValue (const std::string_view value) |
| Replace the current value with another value. More... | |
Data Fields | |
| std::string | name |
| The name of this item. | |
| std::optional< std::string > | value |
| The value of this item. | |
| std::string | comment |
| The comment associated with this item. | |
A single "line" in an ini file.
Definition at line 23 of file ini_type.h.
| IniItem::IniItem | ( | const std::string & | name | ) |
Construct a new in-memory item of an Ini file.
| parent | the group we belong to |
| name | the name of the item |
Definition at line 23 of file ini_load.cpp.
References name, and StrMakeValid().
| void IniItem::SetValue | ( | const std::string_view | value | ) |
Replace the current value with another value.
| value | the value to replace with. |
Definition at line 32 of file ini_load.cpp.
References value.
Referenced by GraphicsSetSaveConfig(), IniSaveSettingList(), HotkeyList::Save(), and SaveVersionInConfig().