Add an accessor to IniFile to list all the sections in the file.
}
+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()
{
/// @return True if the section exists.
bool sectionExists(const std::string §ion) const;
+ /// Push all section names into the given vector
+ void getSectionNames(std::vector<std::string> &list) const;
+
/// Print unreferenced entries in object. Iteratively calls
/// printUnreferend() on all the constituent sections.
bool printUnreferenced();