Skip to content
Snippets Groups Projects
Commit 67a2e4be authored by Carsten Gräser's avatar Carsten Gräser
Browse files

added methods to query all keys in order of appearance

[[Imported from SVN: r4754]]
parent 610b4030
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,7 @@
#include <map>
#include <vector>
#include <string>
#include <iostream>
......@@ -57,6 +58,7 @@ namespace Dune {
{
public:
typedef std::vector<std::string> KeyVector;
/** \brief Create new ConfigParser
*/
......@@ -182,7 +184,27 @@ namespace Dune {
bool get(const std::string& key, bool defaultValue);
/** \brief get value keys
*
* Returns a vector of all keys associated to (key,values) entries in order of appearance
*
* \return reference to entry vector
*/
const KeyVector& getValueKeys() const;
/** \brief get substructure keys
*
* Returns a vector of all keys associated to (key,substructure) entries in order of appearance
*
* \return reference to entry vector
*/
const KeyVector& getSubKeys() const;
private:
KeyVector valueKeys;
KeyVector subKeys;
std::map<std::string, std::string> values;
std::map<std::string, ConfigParser> subs;
std::string trim(std::string s);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment