#include "ConditionParser.h"
#include <boost/version.hpp>
#include <boost/spirit/core.hpp>
Include dependency graph for ConditionParser.cpp:
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. | |
Variables | |
std::string | name |
BasicParam * | param |
TempParameter & | temp |
TempParameter & | temp |
TempParameter & | temp |
TempParameter & | temp |
TempParameter & | temp |
TempParameter & | temp |
TempParameter & | temp |
ParamValidDataObject & | cond |
std::string & | temp |
std::string | name |
data member to hold the name (path) of the condition | |
ParamValidDataObject | condition |
data member to hold the condition | |
ParamValidDataObject & | cond |
reference to the condition to modify | |
std::string & | condition_name |
reference to the string where to put the name of the condition | |
TempParameter | tmp |
temporary object to prepare the parameter before insertion | |
rule< ScannerT > | identifier |
commodity rules | |
rule< ScannerT > | name |
rule< ScannerT > | parameter |
rule< ScannerT > | type [NTypes] |
rule< ScannerT > | value [NTypes] |
rule< ScannerT > | spaces |
rule< ScannerT > | eq |
rule< ScannerT > | sep |
rule< ScannerT > | condition |
main rule |
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 }
std::string name |
Definition at line 21 of file ConditionParser.cpp.
Definition at line 22 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 41 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 52 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 62 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 73 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 84 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 94 of file ConditionParser.cpp.
TempParameter& temp |
Definition at line 104 of file ConditionParser.cpp.
Definition at line 105 of file ConditionParser.cpp.
std::string& temp |
Definition at line 117 of file ConditionParser.cpp.
std::string name |
data member to hold the name (path) of the condition
Definition at line 131 of file ConditionParser.cpp.
std::string& condition_name |
reference to the string where to put the name of the condition
Definition at line 153 of file ConditionParser.cpp.
TempParameter tmp |
temporary object to prepare the parameter before insertion
Definition at line 155 of file ConditionParser.cpp.
rule<ScannerT> identifier |
rule<ScannerT> name |
Definition at line 158 of file ConditionParser.cpp.
rule<ScannerT> parameter |
Definition at line 158 of file ConditionParser.cpp.
rule<ScannerT> type[NTypes] |
Definition at line 158 of file ConditionParser.cpp.
rule<ScannerT> value[NTypes] |
Definition at line 158 of file ConditionParser.cpp.
rule<ScannerT> spaces |
Definition at line 159 of file ConditionParser.cpp.
rule<ScannerT> eq |
Definition at line 159 of file ConditionParser.cpp.
rule<ScannerT> sep |
Definition at line 159 of file ConditionParser.cpp.
rule<ScannerT> condition |