|
OpenTTD Source 20251117-master-g7398d2e290
|
A single "line" in an ini file. More...
#include <ini_type.h>
Public Member Functions | |
| IniItem (std::string_view name) | |
| Construct a new in-memory item of an Ini file. | |
| void | SetValue (std::string_view value) |
| Replace the current value with another value. | |
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 | ( | std::string_view | 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 22 of file ini_load.cpp.
References name, and StrMakeValid().
| void IniItem::SetValue | ( | std::string_view | value | ) |
Replace the current value with another value.
| value | the value to replace with. |
Definition at line 31 of file ini_load.cpp.
References value.
Referenced by BadgeClassSaveConfigFeature(), GraphicsSetSaveConfig(), IniSaveSettingList(), HotkeyList::Save(), and SaveVersionInConfig().
| std::string IniItem::comment |
The comment associated with this item.
Definition at line 26 of file ini_type.h.
Referenced by IniLoadFile::LoadFromDisk().
| std::string IniItem::name |
The name of this item.
Definition at line 24 of file ini_type.h.
Referenced by GRFLoadConfig(), IniItem(), and IniGroup::RemoveItem().
| std::optional<std::string> IniItem::value |
The value of this item.
Definition at line 25 of file ini_type.h.
Referenced by DumpLine(), DumpSections(), BaseSet< GraphicsSet >::FillSetDetails(), BaseSet< T >::FillSetDetails(), FindItemValue(), GraphicsSetLoadConfig(), GRFLoadConfig(), IniSaveSettings(), IntSettingDesc::IsSameValue(), StringSettingDesc::IsSameValue(), HotkeyList::Load(), LoadFromConfig(), IniLoadFile::LoadFromDisk(), IntSettingDesc::ParseValue(), StringSettingDesc::ParseValue(), ListSettingDesc::ParseValue(), and SetValue().