Salome HOME
Issue #1648: Dump Python in the High Level Parameterized Geometry API. Debug of unit...
[modules/shaper.git] / src / Model / Model_AttributeBoolean.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        Model_AttributeBoolean.h
4 // Created:     2 june 2014
5 // Author:      Vitaly Smetannikov
6
7 #ifndef Model_AttributeBoolean_H_
8 #define Model_AttributeBoolean_H_
9
10 #include "Model.h"
11 #include "ModelAPI_AttributeBoolean.h"
12 #include <TDataStd_Integer.hxx>
13 #include <TDF_Label.hxx>
14
15 /**\class Model_AttributeBoolean
16  * \ingroup DataModel
17  * \brief Attribute that contains real value with double precision.
18  */
19
20 class Model_AttributeBoolean : public ModelAPI_AttributeBoolean
21 {
22   Handle_TDataStd_Integer myBool;  ///< double is Real attribute
23   TDF_Label myLab; ///< if attribute is not initialized, store label here
24  public:
25   /// Defines the double value
26   MODEL_EXPORT virtual void setValue(bool theValue);
27
28   /// Returns the double value
29   MODEL_EXPORT virtual bool value();
30
31  protected:
32   /// Initializes attibutes
33   Model_AttributeBoolean(TDF_Label& theLabel);
34
35   friend class Model_Data;
36 };
37
38 #endif