22 #ifndef COMMON_INI_FILE_H 23 #define COMMON_INI_FILE_H 25 #include "common/hash-str.h" 26 #include "common/list.h" 27 #include "common/path.h" 28 #include "common/str.h" 42 class SeekableReadStream;
87 const SectionKeyList
getKeys()
const {
return keys; }
150 String _defaultSectionName;
151 SectionList _sections;
152 bool _allowNonEnglishCharacters;
153 bool _suppressValuelessLineWarning;
154 bool _requireKeyValueDelimiter;
158 bool isValidChar(
char c)
const;
bool hasSection(const String §ion) const
const SectionKeyList getKeys() const
Definition: ini-file.h:87
bool hasKey(const String &key, const String §ion) const
bool getKey(const String &key, const String §ion, String &value) const
const SectionList getSections() const
Definition: ini-file.h:129
List< Section > SectionList
Definition: ini-file.h:90
bool loadFromFileOrDataFork(const Path &filename)
void setDefaultSectionName(const String &name)
bool saveToSaveFile(const String &filename)
List< KeyValue > keys
Definition: ini-file.h:80
String name
Definition: ini-file.h:79
void requireKeyValueDelimiter()
bool saveToFile(const Path &filename)
void removeSection(const String §ion)
bool saveToStream(WriteStream &stream)
bool isValidName(const String &name) const
Definition: ini-file.h:60
void renameSection(const String &oldName, const String &newName)
bool loadFromFile(const Path &filename)
void setKey(const String &key, const String §ion, const String &value)
Definition: algorithm.h:29
void listKeyValues(StringMap &kv)
String value
Definition: ini-file.h:62
String comment
Definition: ini-file.h:81
bool loadFromSaveFile(const String &filename)
void suppressValuelessLineWarning()
Definition: ini-file.h:58
String key
Definition: ini-file.h:61
bool loadFromStream(SeekableReadStream &stream)
Definition: ini-file.h:78
List< KeyValue > SectionKeyList
Definition: ini-file.h:66
void allowNonEnglishCharacters()
const SectionKeyList getKeys(const String §ion) const
void addSection(const String §ion)
String comment
Definition: ini-file.h:63
void removeKey(const String &key, const String §ion)