|
OpenTTD Source
1.11.0-beta2
|
A group within an ini file. More...
#include <ini_type.h>
Public Member Functions | |
| IniGroup (struct IniLoadFile *parent, const std::string &name) | |
| Construct a new in-memory group of an Ini file. More... | |
| ~IniGroup () | |
| Free everything we loaded. | |
| IniItem * | GetItem (const std::string &name, bool create) |
| Get the item with the given name, and if it doesn't exist and create is true it creates a new item. More... | |
| void | Clear () |
| Clear all items in the group. | |
Data Fields | |
| IniGroup * | next |
| the next group within this file | |
| IniGroupType | type |
| type of group | |
| IniItem * | item |
| the first item in the group | |
| IniItem ** | last_item |
| the last item in the group | |
| std::string | name |
| name of group | |
| std::string | comment |
| comment for group | |
A group within an ini file.
Definition at line 38 of file ini_type.h.
| IniGroup::IniGroup | ( | struct IniLoadFile * | parent, |
| const std::string & | name | ||
| ) |
Construct a new in-memory group of an Ini file.
| parent | the file we belong to |
| name | the name of the group |
Definition at line 55 of file ini_load.cpp.
| IniItem * IniGroup::GetItem | ( | const std::string & | name, |
| bool | create | ||
| ) |
Get the item with the given name, and if it doesn't exist and create is true it creates a new item.
| name | name of the item to find. |
| create | whether to create an item when not found or not. |
Definition at line 95 of file ini_load.cpp.
References item, IniItem::name, name, and IniItem::next.
Referenced by DumpSections(), FindItemValue(), IniSaveSettingList(), HotkeyList::Load(), and HotkeyList::Save().