X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FParametersPlugin_PyInterp.h;h=32b5c6d31a7fc19de72e355af8290405a7ad7722;hb=8ebc9a7d5f87057b61b174e7568e01e44571549d;hp=4151f4e231cf192a3dd18c3cb26b06b7db318dd0;hpb=150ef68b3ea2df3c2130a4f5ea8128ddb5c76048;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/ParametersPlugin_PyInterp.h b/src/ParametersPlugin/ParametersPlugin_PyInterp.h index 4151f4e23..32b5c6d31 100644 --- a/src/ParametersPlugin/ParametersPlugin_PyInterp.h +++ b/src/ParametersPlugin/ParametersPlugin_PyInterp.h @@ -13,6 +13,7 @@ #include #include +#include class PARAMETERSPLUGIN_EXPORT ParametersPlugin_PyInterp : public PyInterp_Interp { @@ -20,14 +21,18 @@ class PARAMETERSPLUGIN_EXPORT ParametersPlugin_PyInterp : public PyInterp_Interp ParametersPlugin_PyInterp(); virtual ~ParametersPlugin_PyInterp(); + std::list > positions(const std::string& theExpression, + const std::string& theName); std::list compile(const std::string&); void extendLocalContext(const std::list&); + void clearLocalContext(); double evaluate(const std::string&, std::string&); protected: std::string errorMessage(); // Overrides PyInterp_Interp virtual bool initContext(); + virtual void closeContext(); }; #endif /* PARAMETERSPLUGIN_PYINTERP_H_ */