CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_4_2_9_HLT1_bphpatch4/src/CommonTools/Utils/interface/expressionParser.h

Go to the documentation of this file.
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 <Reflex/Type.h>
00006 #include <string>
00007 
00008 namespace reco {
00009   namespace parser {
00010   bool expressionParser(const Reflex::Type &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(Reflex::Type::ByTypeInfo(typeid(T)), value, expr, lazy);
00015   }
00016 
00017   }
00018 }
00019 
00020 #endif