X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FInitializationPlugin%2FInitializationPlugin_PyInterp.h;h=a2934ae72bf5fb28b31a4d899b6852fefd679f12;hb=refs%2Fheads%2FV9_11_BR;hp=b34a8df82ba0b213c71c2b2f81f49722eb3579ee;hpb=a0fa395fd2a0ddb16cb9aed4dab180f2681b4447;p=modules%2Fshaper.git diff --git a/src/InitializationPlugin/InitializationPlugin_PyInterp.h b/src/InitializationPlugin/InitializationPlugin_PyInterp.h index b34a8df82..a2934ae72 100644 --- a/src/InitializationPlugin/InitializationPlugin_PyInterp.h +++ b/src/InitializationPlugin/InitializationPlugin_PyInterp.h @@ -1,4 +1,4 @@ -// Copyright (C) 2014-2020 CEA/DEN, EDF R&D +// Copyright (C) 2014-2023 CEA, EDF // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -39,16 +39,16 @@ class INITIALIZATIONPLUGIN_EXPORT InitializationPlugin_PyInterp : public PyInter virtual ~InitializationPlugin_PyInterp(); /// Returns a list of positions for theName in theExpression. - std::list > positions(const std::string& theExpression, - const std::string& theName); + std::list > positions(const std::wstring& theExpression, + const std::wstring& theName); /// Compiles theExpression and returns a list of parameters used in theExpression. - std::list compile(const std::string& theExpression); + std::list compile(const std::wstring& theExpression); /// Extends local context with the list of parameters. - void extendLocalContext(const std::list& theParameters); + void extendLocalContext(const std::list& theParameters); /// Clears local context. void clearLocalContext(); /// Evaluates theExpression and returns its value. - double evaluate(const std::string& theExpression, std::string& theError); + double evaluate(const std::wstring& theExpression, std::string& theError); /// Runs the string command in the python interpreter. Returns true if no error is in result. bool runString(std::string theString);