Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-08-05 22:47:52

0001 #ifndef CommonTools_Utils_expressionParset_h
0002 #define CommonTools_Utils_expressionParset_h
0003 #include "CommonTools/Utils/interface/ExpressionPtr.h"
0004 #include "CommonTools/Utils/interface/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   }  // namespace parser
0018 }  // namespace reco
0019 
0020 #endif