| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

In This Package:

ConditionParser.cpp File Reference

#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
BasicParamparam
TempParameter & temp
TempParameter & temp
TempParameter & temp
TempParameter & temp
TempParameter & temp
TempParameter & temp
TempParameter & temp
ParamValidDataObjectcond
std::string & temp
std::string name
 data member to hold the name (path) of the condition
ParamValidDataObject condition
 data member to hold the condition
ParamValidDataObjectcond
 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

Function Documentation

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).

Author:
Marco Clemencic
Date:
2006-10-23

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 }


Variable Documentation

std::string name

Definition at line 21 of file ConditionParser.cpp.

BasicParam* param

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.

ParamValidDataObject& cond

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.

ParamValidDataObject condition

data member to hold the condition

Definition at line 133 of file ConditionParser.cpp.

ParamValidDataObject& cond

reference to the condition to modify

Definition at line 151 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

commodity rules

Definition at line 158 of file ConditionParser.cpp.

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

main rule

Definition at line 161 of file ConditionParser.cpp.

| Classes | Job Modules | Data Objects | Services | Algorithms | Tools | Packages | Directories | Tracs |

Generated on Mon Apr 11 20:02:42 2011 for DetDescSvc by doxygen 1.4.7