00001 #ifndef CommonTools_Utils_expressionParset_h 00002 #define CommonTools_Utils_expressionParset_h 00003 #include "CommonTools/Utils/src/ExpressionPtr.h" 00004 #include "CommonTools/Utils/interface/Exception.h" 00005 #include "FWCore/Utilities/interface/TypeWithDict.h" 00006 #include <string> 00007 00008 namespace reco { 00009 namespace parser { 00010 bool expressionParser(const edm::TypeWithDict &t, const std::string & value, ExpressionPtr & expr, bool lazy) ; 00011 00012 template<typename T> 00013 bool expressionParser( const std::string & value, ExpressionPtr & expr, bool lazy=false) { 00014 return reco::parser::expressionParser(edm::TypeWithDict(typeid(T)), value, expr, lazy); 00015 } 00016 00017 } 00018 } 00019 00020 #endif