Salome HOME
Issue #604 Creation of an unexpected line in the Sketcher
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_EvalListener.h
1 /*
2  * ParametersPlugin_EvalListener.h
3  *
4  *  Created on: Apr 28, 2015
5  *      Author: sbh
6  */
7
8 #ifndef SRC_PARAMETERSPLUGIN_EVALLISTENER_H_
9 #define SRC_PARAMETERSPLUGIN_EVALLISTENER_H_
10
11 #include <ParametersPlugin.h>
12 #include <Events_Loop.h>
13
14 class ParametersPlugin_PyInterp;
15
16 class PARAMETERSPLUGIN_EXPORT ParametersPlugin_EvalListener : public Events_Listener
17 {
18  public:
19   ParametersPlugin_EvalListener();
20   virtual ~ParametersPlugin_EvalListener();
21
22   virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
23
24  protected:
25   double evaluate(const std::string& theExpression,
26                   std::string& theError) ;
27
28  private:
29   std::shared_ptr<ParametersPlugin_PyInterp> myInterp;
30 };
31
32 #endif /* SRC_PARAMETERSPLUGIN_PARAMETERSPLUGIN_EVALLISTENER_H_ */