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

In This Package:

ConditionParser.h File Reference

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

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 }

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

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