#include "DetDesc/ParamValidDataObject.h"
Include dependency graph for ConditionParser.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Functions | |
bool | ConditionParser (const std::string &str, std::string &name, ParamValidDataObject &cond) |
Wrapper around the parser to convert strings to condition objects. |
bool ConditionParser | ( | const std::string & | str, | |
std::string & | name, | |||
ParamValidDataObject & | cond | |||
) |
Wrapper around the parser to convert strings to condition objects.
(written with boost::spirit, http://boost.org/libs/spirit/index.html).
Definition at line 244 of file ConditionParser.cpp.
00244 { 00245 ConditionGrammar g; 00246 // TODO: improve error messages 00247 if ( parse(str.c_str(),g).full ){ 00248 name = g.name; 00249 cond.update(g.condition); 00250 return true; 00251 } 00252 return false; 00253 }