Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Object Browser tree needed method implementation
[modules/shaper.git]
/
src
/
ParametersPlugin
/
ParametersPlugin_PyInterp.h
diff --git
a/src/ParametersPlugin/ParametersPlugin_PyInterp.h
b/src/ParametersPlugin/ParametersPlugin_PyInterp.h
index 6bb2a210d46ccd8e5f217716854a39da7bfc8005..32b5c6d31a7fc19de72e355af8290405a7ad7722 100644
(file)
--- a/
src/ParametersPlugin/ParametersPlugin_PyInterp.h
+++ b/
src/ParametersPlugin/ParametersPlugin_PyInterp.h
@@
-13,6
+13,7
@@
#include <list>
#include <string>
#include <list>
#include <string>
+#include <utility>
class PARAMETERSPLUGIN_EXPORT ParametersPlugin_PyInterp : public PyInterp_Interp
{
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();
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>&);
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:
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();
std::string errorMessage();
+ // Overrides PyInterp_Interp
+ virtual bool initContext();
+ virtual void closeContext();
};
#endif /* PARAMETERSPLUGIN_PYINTERP_H_ */
};
#endif /* PARAMETERSPLUGIN_PYINTERP_H_ */