summaryrefslogtreecommitdiff
path: root/src/base/inifile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/base/inifile.cc')
-rw-r--r--src/base/inifile.cc11
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 &sectionName, const string &entryName,
}
bool
+IniFile::entryExists(const string &sectionName, const string &entryName) const
+{
+ Section *section = findSection(sectionName);
+
+ if (!section)
+ return false;
+ else
+ return section->findEntry(entryName);
+}
+
+bool
IniFile::sectionExists(const string &sectionName) const
{
return findSection(sectionName) != NULL;