File indexing completed on 2024-04-06 12:01:18
0001 #ifndef CommonTools_Utils_expressionParset_h
0002 #define CommonTools_Utils_expressionParset_h
0003 #include "CommonTools/Utils/interface/parser/ExpressionPtr.h"
0004 #include "CommonTools/Utils/interface/parser/Exception.h"
0005 #include "FWCore/Reflection/interface/TypeWithDict.h"
0006 #include <string>
0007
0008 namespace reco {
0009 namespace parser {
0010 bool expressionParser(const edm::TypeWithDict &t, const std::string &value, ExpressionPtr &expr, bool lazy);
0011
0012 template <typename T>
0013 bool expressionParser(const std::string &value, ExpressionPtr &expr, bool lazy = false) {
0014 return reco::parser::expressionParser(edm::TypeWithDict(typeid(T)), value, expr, lazy);
0015 }
0016
0017 }
0018 }
0019
0020 #endif