Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / Model / Model_AttributeDouble.h
1 // File:        Model_AttributeDouble.h
2 // Created:     2 Apr 2014
3 // Author:      Mikhail PONIKAROV
4
5 #ifndef Model_AttributeDouble_HeaderFile
6 #define Model_AttributeDouble_HeaderFile
7
8 #include "Model.h"
9 #include "ModelAPI_AttributeDouble.h"
10 #include <TDataStd_Real.hxx>
11 #include <TDF_Label.hxx>
12
13 /**\class Model_AttributeDouble
14  * \ingroup DataModel
15  * \brief Attribute that contains real value with double precision.
16  */
17
18 class MODEL_EXPORT Model_AttributeDouble : public ModelAPI_AttributeDouble
19 {
20   Handle_TDataStd_Real myReal; ///< double is Real attribute
21 public:
22   /// Defines the double value
23   virtual void setValue(const double theValue);
24
25   /// Returns the double value
26   virtual double value();
27
28 protected:
29   /// Initializes attibutes
30   Model_AttributeDouble(TDF_Label& theLabel);
31
32   friend class Model_Object;
33 };
34
35 #endif