6 #include "StringParameters.h"
7 #include "LuizaExceptions.h"
18 typedef std::map< std::string , StringParameters* > StringParametersMap ;
45 Parser(
const std::string& fileName ) ;
48 StringParameters*
getParameters(
const std::string& sectionName )
const ;
52 if(cmdlineparams.size()>0)
53 throw ParseException(
"dynamic command line options only supported for xml steering files" ) ;
70 mutable StringParametersMap _map ;
71 StringParameters* _current ;
73 std::string _fileName ;
88 std::vector< std::string >& _tokens ;
93 LCTokenizer( std::vector< std::string >& tokens,
char del ) : _tokens(tokens) , _del(del), _last(del) {
97 void operator()(
const char& c) {
101 if( _last == _del ) {
102 _tokens.push_back(
"") ;
104 _tokens.back() += c ;
114 std::vector<std::string> & result() {
void setCmdLineParameters(const CommandLineParametersMap &cmdlineparams)
Definition: Parser.h:51
int readNextValidLine(std::string &str, std::istream &stream)
Definition: Parser.cc:132
void parse()
Definition: Parser.cc:16
ParseException used for parse errors, e.g. when reading the steering file.
Definition: LuizaExceptions.h:15
Namespace for Luiza framework.
Definition: CCCollection.h:6
StringParameters * getParameters(const std::string §ionName) const
Definition: Parser.cc:113