- /**
- * Returns keys appearing in this section
- */
- std::vector<std::string> getKeys();
- /**
- * Overloaded index operator, calls getValues()
- */
- std::vector<std::string> operator[](std::string key)
- throw (KeyNotFoundException);
+ /**
+ * Returns keys appearing in this section
+ */
+ const std::vector<std::string> getKeys() const;
+ /**
+ * Overloaded index operator, calls getValues()
+ */
+ const std::vector<std::string> operator[](const std::string& key) const
+ throw (KeyNotFoundException);