Salome HOME
Object Browser tree needed method implementation
[modules/shaper.git] / src / ParametersPlugin / ParametersPlugin_PyInterp.h
index 6bb2a210d46ccd8e5f217716854a39da7bfc8005..32b5c6d31a7fc19de72e355af8290405a7ad7722 100644 (file)
@@ -13,6 +13,7 @@
 
 #include <list>
 #include <string>
+#include <utility>
 
 class PARAMETERSPLUGIN_EXPORT ParametersPlugin_PyInterp : public PyInterp_Interp
 {
@@ -20,15 +21,18 @@ class PARAMETERSPLUGIN_EXPORT ParametersPlugin_PyInterp : public PyInterp_Interp
   ParametersPlugin_PyInterp();
   virtual ~ParametersPlugin_PyInterp();
 
+  std::list<std::pair<int, int> > positions(const std::string& theExpression,
+                                            const std::string& theName);
   std::list<std::string> compile(const std::string&);
   void extendLocalContext(const std::list<std::string>&);
+  void clearLocalContext();
   double evaluate(const std::string&, std::string&);
 
  protected:
-  std::list<std::string> _compile(const std::string&);
-  void _extendLocalContext(const std::list<std::string>&);
-  double _evaluate(const std::string&, std::string&);
   std::string errorMessage();
+  // Overrides PyInterp_Interp
+  virtual bool initContext();
+  virtual void closeContext();
 };
 
 #endif /* PARAMETERSPLUGIN_PYINTERP_H_ */