Salome HOME
updated copyright message
[modules/shaper.git] / src / ModelAPI / ModelAPI_Expression.h
index f40be679fdc3c296e2f20d31356828920fba6c26..a4a481b20f9e0216ccda54bbaf8368905244a2c8 100644 (file)
@@ -1,4 +1,4 @@
-// Copyright (C) 2014-2017  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
@@ -12,9 +12,9 @@
 //
 // You should have received a copy of the GNU Lesser General Public
 // License along with this library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
 //
-// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com<mailto:webmaster.salome@opencascade.com>
+// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 //
 
 #ifndef ModelAPI_Expression_H_
@@ -43,10 +43,10 @@ class ModelAPI_Expression
   MODELAPI_EXPORT virtual void setInitialized();
 
   /// Sets the text of this Expression
-  MODELAPI_EXPORT virtual void setText(const std::string& theText) = 0;
+  MODELAPI_EXPORT virtual void setText(const std::wstring& theText) = 0;
 
   /// Returns the text of this Expression
-  MODELAPI_EXPORT virtual std::string text() const = 0;
+  MODELAPI_EXPORT virtual std::wstring text() const = 0;
 
   /// Allows to set expression (text) as invalid (by the parameters listener)
   MODELAPI_EXPORT virtual void setInvalid(const bool theFlag) = 0;
@@ -62,14 +62,17 @@ class ModelAPI_Expression
 
   /// Defines the used parameters (by the parameters listener)
   MODELAPI_EXPORT virtual
-    void setUsedParameters(const std::set<std::string>& theUsedParameters) = 0;
+    void setUsedParameters(const std::set<std::wstring>& theUsedParameters) = 0;
 
   /// Returns the used parameters
-  MODELAPI_EXPORT virtual std::set<std::string> usedParameters() const = 0;
+  MODELAPI_EXPORT virtual std::set<std::wstring> usedParameters() const = 0;
 
   /// Returns True if the given string can be defined as a name of an expression variable
   MODELAPI_EXPORT static bool isVariable(const std::string& theString);
 
+  /// Returns True if the given string can be defined as a name of an expression variable
+  MODELAPI_EXPORT static bool isVariable(const std::wstring& theString);
+
  protected:
   /// Objects are created for features automatically
   MODELAPI_EXPORT ModelAPI_Expression();