+
+/**\class Model_ExpressionDouble
+ * \ingroup DataModel
+ * \brief Implementation of ModelAPI_ExpressionDouble.
+ */
+class Model_ExpressionDouble :
+ public Model_Expression, // implementation inheritance
+ public ModelAPI_ExpressionDouble
+{
+ public:
+ /// Defines the double value
+ MODEL_EXPORT virtual void setValue(const double theValue);
+
+ /// Returns the double value
+ MODEL_EXPORT virtual double value();
+
+ /// Allows to set expression (text) as invalid (by the parameters listener)
+ MODEL_EXPORT virtual void setInvalid(const bool theFlag);
+
+ /// Returns true if text is invalid
+ MODEL_EXPORT virtual bool isInvalid();
+
+ protected:
+ /// Initializes attributes
+ Model_ExpressionDouble(TDF_Label& theLabel);
+
+ friend class Model_Data;
+
+ private:
+ Handle_TDataStd_Real myReal; ///< double is Real attribute
+};
+
+
+/**\class Model_ExpressionInteger
+ * \ingroup DataModel
+ * \brief Implementation of ModelAPI_ExpressionInteger.
+ */
+class Model_ExpressionInteger :
+ public Model_Expression, // implementation inheritance
+ public ModelAPI_ExpressionInteger
+{
+ public:
+ /// Defines the integer value
+ MODEL_EXPORT virtual void setValue(const int theValue);
+
+ /// Returns the integer value
+ MODEL_EXPORT virtual int value();
+
+ /// Allows to set expression (text) as invalid (by the parameters listener)
+ MODEL_EXPORT virtual void setInvalid(const bool theFlag);
+
+ /// Returns true if text is invalid
+ MODEL_EXPORT virtual bool isInvalid();
+
+ protected:
+ /// Initializes attributes
+ Model_ExpressionInteger(TDF_Label& theLabel);
+
+ friend class Model_Data;
+
+ private:
+ Handle_TDataStd_Integer myInteger;
+};
+
+#endif // Model_Expression_H_