52 throw ParseException(
"dynamic command line options only supported for xml steering files" ) ;
std::shared_ptr< StringParameters > getParameters(const std::string §ionName) const
Return the StringParameters defined for this section of the steering file.
ParseException used for parse errors, e.g.
Interface for a parser of a steering file to be used with marlin.
Simple parser class for Marlin.
void setCmdLineParameters(const CommandLineParametersMap &)
set command line parameters
std::map< std::string, std::shared_ptr< StringParameters > > StringParametersMap
int readNextValidLine(std::string &str, std::istream &stream)
Helper method that reads the next line from a stream that is not empty or starts with a '#'...
std::vector< std::string > & _tokens
void parse()
Parse the input file.
Parser & operator=(const marlin::Parser &)=delete
void write(const std::string &fname) const
Write down the parsed file in a new file.
LCTokenizer(std::vector< std::string > &tokens, char del, size_t max=-1)
void operator()(const char &c)
StringParameters * _current
Simple parameters class for Marlin.
std::vector< std::string > & result()