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.cc10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/base/inifile.cc b/src/base/inifile.cc
index 011887635..402c6469f 100644
--- a/src/base/inifile.cc
+++ b/src/base/inifile.cc
@@ -280,6 +280,16 @@ IniFile::Section::printUnreferenced(const string &sectionName)
}
+void
+IniFile::getSectionNames(vector<string> &list) const
+{
+ for (SectionTable::const_iterator i = table.begin();
+ i != table.end(); ++i)
+ {
+ list.push_back((*i).first);
+ }
+}
+
bool
IniFile::printUnreferenced()
{