AMDiS  0.1
The Adaptive Multi-Dimensional Simulation Toolbox
InitfileParser Class Reference

Parser for AMDiS initfile format. More...

#include <InitfileParser.hpp>

Static Public Member Functions

static void readInitfile (std::istream &in, Dune::ParameterTree &pt, bool overwrite)
 Read initfile from input stream into parameter-tree.
 
static void readInitfile (std::string const &fn, Dune::ParameterTree &pt, bool overwrite=true)
 Read initfile from input stream into parameter-tree.
 

Detailed Description

Parser for AMDiS initfile format.

An AMDiS initfile is a list of pairs (paramter, value) stored in a structured textfile of the format

* parameter: value          % a comment
*
* #include <filename>       % include files
* var_${parameter}: value2  % variable replacement in keys
* parameter2: ${parameter}  % variable replacement in values
*
* parameter3: 1 + sin(4.0)  % expressions in the values
* parameter4: $(1 + 2)      % expression replacement
* 

The documentation for this class was generated from the following files: