Skip to content

Commit

Permalink
Add FileParser::getArg().
Browse files Browse the repository at this point in the history
  • Loading branch information
trisyoungs committed Oct 18, 2018
1 parent 8832249 commit cf9c9df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/base/fileparser.h
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,12 @@ class FileParser
variable = parser_.line();
return (result == 0);
}
// Read next delimited argument from file
bool readArg(QString& variable)
{
if (!parser_.getNextArg(Parser::Defaults, variable)) return false;
return true;
}
// Read next line from file into the variable supplied, and parse it as well
bool readAndParseLine(QString& variable)
{
Expand Down

0 comments on commit cf9c9df

Please sign in to comment.