Dune Core Modules (2.3.1)

parametertreeparser.hh
Go to the documentation of this file.
1// -*- tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2// vi: set et ts=4 sw=2 sts=2:
3#ifndef DUNE_PARAMETER_PARSER_HH
4#define DUNE_PARAMETER_PARSER_HH
5
10#include <istream>
11#include <string>
12
14
15namespace Dune {
16
22 {
23
24 static std::string ltrim(const std::string& s);
25 static std::string rtrim(const std::string& s);
26
27 public:
28
72
87 static void readINITree(std::istream& in, ParameterTree& pt,
88 bool overwrite);
89
90
103 static void readINITree(std::istream& in, ParameterTree& pt,
104 const std::string srcname = "stream",
105 bool overwrite = true);
106
107
118 static void readINITree(std::string file, ParameterTree& pt, bool overwrite = true);
119
121
133 static void readOptions(int argc, char* argv [], ParameterTree& pt);
134
135 };
136
137} // end namespace Dune
138
139#endif // DUNE_PARAMETER_PARSER_HH
Parsers to set up a ParameterTree from various input sources.
Definition: parametertreeparser.hh:22
static void readOptions(int argc, char *argv[], ParameterTree &pt)
parse command line options and build hierarchical ParameterTree structure
Definition: parametertreeparser.cc:136
static void readINITree(std::istream &in, ParameterTree &pt, bool overwrite)
parse C++ stream
Definition: parametertreeparser.cc:53
Hierarchical structure of string parameters.
Definition: parametertree.hh:34
Dune namespace.
Definition: alignment.hh:14
A hierarchical structure of string parameters.
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Nov 12, 23:30, 2024)