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