Codechange: Add CreateGroup/CreateItem methods for ini files.
This abstracts the internals a bit.
This commit is contained in:

committed by
Peter Nelson

parent
0c85ce29ea
commit
d3c5ae2648
@@ -46,6 +46,7 @@ struct IniGroup {
|
||||
|
||||
IniItem *GetItem(const std::string &name) const;
|
||||
IniItem &GetOrCreateItem(const std::string &name);
|
||||
IniItem &CreateItem(const std::string &name);
|
||||
void RemoveItem(const std::string &name);
|
||||
void Clear();
|
||||
};
|
||||
@@ -62,6 +63,7 @@ struct IniLoadFile {
|
||||
virtual ~IniLoadFile();
|
||||
|
||||
IniGroup *GetGroup(const std::string &name, bool create_new = true);
|
||||
IniGroup &CreateGroup(const std::string &name);
|
||||
void RemoveGroup(const std::string &name);
|
||||
|
||||
void LoadFromDisk(const std::string &filename, Subdirectory subdir);
|
||||
|
Reference in New Issue
Block a user