Salome HOME
Simplified calculation of fly out distance and creation of constraints limited only...
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_EvalListener.h
index bd9e6385fd9a34b7be362dff2253ca0486fdd2b1..02b5e6c523d4d717def9b701ad1d800b9b6aa088 100644 (file)
 #include <Events_Loop.h>
 
 class ModelAPI_Attribute;
+class ModelAPI_Document;
 class ParametersPlugin_Parameter;
 class ParametersPlugin_PyInterp;
 
-class PARAMETERSPLUGIN_EXPORT ParametersPlugin_EvalListener : public Events_Listener
+class ParametersPlugin_EvalListener : public Events_Listener
 {
  public:
-  ParametersPlugin_EvalListener();
-  virtual ~ParametersPlugin_EvalListener();
+  PARAMETERSPLUGIN_EXPORT ParametersPlugin_EvalListener();
+  PARAMETERSPLUGIN_EXPORT virtual ~ParametersPlugin_EvalListener();
 
-  virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
+  PARAMETERSPLUGIN_EXPORT virtual void processEvent(const std::shared_ptr<Events_Message>& theMessage);
 
  protected:
-  double evaluate(const std::string& theExpression, std::string& theError);
+  double evaluate(const std::string& theExpression, std::string& theError, 
+                  const std::shared_ptr<ModelAPI_Document>& theDocument);
 
   void processEvaluationEvent(const std::shared_ptr<Events_Message>& theMessage);
   void processObjectRenamedEvent(const std::shared_ptr<Events_Message>& theMessage);