diff options
Diffstat (limited to 'src/base/inifile.cc')
-rw-r--r-- | src/base/inifile.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/base/inifile.cc b/src/base/inifile.cc index 402c6469f..80ed3eb06 100644 --- a/src/base/inifile.cc +++ b/src/base/inifile.cc @@ -230,6 +230,17 @@ IniFile::find(const string §ionName, const string &entryName, } bool +IniFile::entryExists(const string §ionName, const string &entryName) const +{ + Section *section = findSection(sectionName); + + if (!section) + return false; + else + return section->findEntry(entryName); +} + +bool IniFile::sectionExists(const string §ionName) const { return findSection(sectionName) != NULL; |