1 #ifndef ExprEvalInterface_h
2 #define ExprEvalInterface_h
17 void set(
const std::string & ns,
18 const std::string &
name,
19 const std::string & valueExpr
24 double eval(
const std::string & ns,
25 const std::string & expr
31 const std::string & name
virtual void set(const std::string &ns, const std::string &name, const std::string &valueExpr)=0
put a new variable named 'namespace:name' into the dictionary of the evaluator
virtual ~ExprEvalInterface()
Interface of an Expression Evaluator.
virtual void clear()=0
access to the dictionary (namespace,name)->value
virtual double eval(const std::string &ns, const std::string &expr)=0
evaluate an expression expr inside the local namespace
virtual bool isDefined(const std::string &ns, const std::string &name)=0
check whether a variable is already defined or not