X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FParametersPlugin%2FParametersPlugin_PyInterp.h;h=32b5c6d31a7fc19de72e355af8290405a7ad7722;hb=8ebc9a7d5f87057b61b174e7568e01e44571549d;hp=6bb2a210d46ccd8e5f217716854a39da7bfc8005;hpb=b2418a13c302e03ed5f80dbdae0cd20f0abd16af;p=modules%2Fshaper.git diff --git a/src/ParametersPlugin/ParametersPlugin_PyInterp.h b/src/ParametersPlugin/ParametersPlugin_PyInterp.h index 6bb2a210d..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,15 +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::list _compile(const std::string&); - void _extendLocalContext(const std::list&); - double _evaluate(const std::string&, std::string&); std::string errorMessage(); + // Overrides PyInterp_Interp + virtual bool initContext(); + virtual void closeContext(); }; #endif /* PARAMETERSPLUGIN_PYINTERP_H_ */