3 #ifndef DUNE_PARAMETER_PARSER_HH
4 #define DUNE_PARAMETER_PARSER_HH
35 static std::string ltrim(
const std::string& s);
36 static std::string rtrim(
const std::string& s);
119 const std::string srcname =
"stream",
120 bool overwrite =
true);
177 std::vector<std::string> keywords,
179 bool allow_more =
true,
180 bool overwrite =
true,
181 std::vector<std::string> help = std::vector<std::string>());
184 static std::string generateHelpString(std::string progname, std::vector<std::string> keywords,
unsigned int required, std::vector<std::string> help);
A few common exception classes.
A hierarchical structure of string parameters.
Dune namespace.
Definition: alignedallocator.hh:11
auto max(const AlignedNumber< T, align > &a, const AlignedNumber< T, align > &b)
Definition: debugalign.hh:412
Base class for Dune-Exceptions.
Definition: exceptions.hh:94
Default exception class for range errors.
Definition: exceptions.hh:252
Hierarchical structure of string parameters.
Definition: parametertree.hh:35
report parser error while reading ParameterTree
Definition: parametertreeparser.hh:20
exception thrown if the user wants to see help string
Definition: parametertreeparser.hh:26
Parsers to set up a ParameterTree from various input sources.
Definition: parametertreeparser.hh:33
static void readOptions(int argc, char *argv[], ParameterTree &pt)
parse command line options and build hierarchical ParameterTree structure
Definition: parametertreeparser.cc:157
static void readINITree(std::istream &in, ParameterTree &pt, bool overwrite)
parse C++ stream
Definition: parametertreeparser.cc:72
static void readNamedOptions(int argc, char *argv[], ParameterTree &pt, std::vector< std::string > keywords, unsigned int required=std::numeric_limits< unsigned int >::max(), bool allow_more=true, bool overwrite=true, std::vector< std::string > help=std::vector< std::string >())
read [named] command line options and build hierarchical ParameterTree structure
Definition: parametertreeparser.cc:173