5 #ifndef DUNE_PARAMETER_PARSER_HH 6 #define DUNE_PARAMETER_PARSER_HH 37 static std::string ltrim(
const std::string& s);
38 static std::string rtrim(
const std::string& s);
121 const std::string srcname =
"stream",
122 bool overwrite =
true);
179 std::vector<std::string> keywords,
181 bool allow_more =
true,
182 bool overwrite =
true,
183 std::vector<std::string> help = std::vector<std::string>());
186 static std::string generateHelpString(std::string progname, std::vector<std::string> keywords,
unsigned int required, std::vector<std::string> help);
191 #endif // DUNE_PARAMETER_PARSER_HH 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:171
constexpr auto max
Function object that returns the greater of the given values.
Definition: hybridutilities.hh:489
static void readINITree(std::istream &in, ParameterTree &pt, bool overwrite)
parse C++ stream
Definition: parametertreeparser.cc:70
Base class for Dune-Exceptions.
Definition: exceptions.hh:96
static void readOptions(int argc, char *argv [], ParameterTree &pt)
parse command line options and build hierarchical ParameterTree structure
Definition: parametertreeparser.cc:155
Default exception class for range errors.
Definition: exceptions.hh:348
Dune namespace
Definition: alignedallocator.hh:12
exception thrown if the user wants to see help string
Definition: parametertreeparser.hh:28
Hierarchical structure of string parameters.
Definition: parametertree.hh:36
A few common exception classes.
A hierarchical structure of string parameters.
report parser error while reading ParameterTree
Definition: parametertreeparser.hh:22
Parsers to set up a ParameterTree from various input sources.
Definition: parametertreeparser.hh:34