*
* Return whether the read was successful.
*
+ * If non-empty @p last_line is provided, the ParameterHandler object
+ * will stop parsing lines after encountering @p last_line .
+ * This is handy when adding extra data that shall be parsed manually.
+ *
* @note Of the three <tt>read_input</tt> functions implemented by
* ParameterHandler, this is the only one overridden with new behavior by
* this class. This is because the other two <tt>read_input</tt> functions
* just reformat their inputs and then call this version.
*/
virtual bool read_input (std::istream &input,
- const std::string &filename = "input file");
+ const std::string &filename = "input file",
+ const std::string &last_line = "");
/**
* Overriding virtual functions which are overloaded (like
bool MultipleParameterLoop::read_input (std::istream &input,
- const std::string &filename)
+ const std::string &filename,
+ const std::string &last_line)
{
AssertThrow (input, ExcIO());
- bool x = ParameterHandler::read_input (input, filename);
+ bool x = ParameterHandler::read_input (input, filename, last_line);
if (x)
init_branches ();
return x;