Luiza
v03-01
|
#include <Parser.h>
Public Member Functions | |
StringParameters * | getParameters (const std::string §ionName) const |
void | setCmdLineParameters (const CommandLineParametersMap &cmdlineparams) |
void | parse () |
Protected Member Functions | |
int | readNextValidLine (std::string &str, std::istream &stream) |
Simple parser class for Marlin. Creates Parameter objects for all sections in a steering file defined by enclosing
.begin SectionName
.end
Parameters are defined for every line that doesn't start with #. The first string is the name of the parameter (key) the rest of the line is interpreted as the list of values separated by whitespace. Values from multiple lines starting with the same name/key are appended to the corresponding list.
|
virtual |
Return the StringParameters defined for this section of the steering file
Implements luiza::IParser.
|
virtual |
|
protected |
Helper method that reads the next line from a stream that is not empty or starts with a '#'
Referenced by parse().
|
inlinevirtual |
set command line parameters
Implements luiza::IParser.