From: dbv Date: Mon, 29 Feb 2016 08:52:26 +0000 (+0300) Subject: VS warning fix X-Git-Tag: V_2.2.0~47 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=d58fe530094de602b5b3fb4848b149532e11da45;p=modules%2Fshaper.git VS warning fix --- diff --git a/src/Model/Model_Expression.h b/src/Model/Model_Expression.h index 4e48d15cc..fa2be8f75 100644 --- a/src/Model/Model_Expression.h +++ b/src/Model/Model_Expression.h @@ -64,6 +64,36 @@ class Model_ExpressionDouble : public ModelAPI_ExpressionDouble { public: + /// Sets the text of this Expression + MODEL_EXPORT virtual void setText(const std::string& theText) { + Model_Expression::setText(theText); + }; + + /// Returns the text of this Expression + MODEL_EXPORT virtual std::string text() const { + return Model_Expression::text(); + }; + + /// Allows to set expression (text) error (by the parameters listener) + MODEL_EXPORT virtual void setError(const std::string& theError) { + Model_Expression::setError(theError); + }; + + /// Returns an expression error + MODEL_EXPORT virtual std::string error() { + return Model_Expression::error(); + }; + + /// Defines the used parameters (by the parameters listener) + MODEL_EXPORT virtual void setUsedParameters(const std::set& theUsedParameters) { + Model_Expression::setUsedParameters(theUsedParameters); + }; + + /// Returns the used parameters + MODEL_EXPORT virtual std::set usedParameters() const { + return Model_Expression::usedParameters(); + }; + /// Defines the double value MODEL_EXPORT virtual void setValue(const double theValue); @@ -96,6 +126,36 @@ class Model_ExpressionInteger : public ModelAPI_ExpressionInteger { public: + /// Sets the text of this Expression + MODEL_EXPORT virtual void setText(const std::string& theText) { + Model_Expression::setText(theText); + }; + + /// Returns the text of this Expression + MODEL_EXPORT virtual std::string text() const { + return Model_Expression::text(); + }; + + /// Allows to set expression (text) error (by the parameters listener) + MODEL_EXPORT virtual void setError(const std::string& theError) { + Model_Expression::setError(theError); + }; + + /// Returns an expression error + MODEL_EXPORT virtual std::string error() { + return Model_Expression::error(); + }; + + /// Defines the used parameters (by the parameters listener) + MODEL_EXPORT virtual void setUsedParameters(const std::set& theUsedParameters) { + Model_Expression::setUsedParameters(theUsedParameters); + }; + + /// Returns the used parameters + MODEL_EXPORT virtual std::set usedParameters() const { + return Model_Expression::usedParameters(); + }; + /// Defines the integer value MODEL_EXPORT virtual void setValue(const int theValue);