Salome HOME
Spell-checking
[modules/shaper.git] / src / Model / Model_AttributeInteger.h
1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
2
3 // File:        Model_AttributeInteger.h
4 // Created:     03 sep 2014
5 // Author:      sbh
6
7 #ifndef MODEL_ATTRIBUTEINTEGER_H_
8 #define MODEL_ATTRIBUTEINTEGER_H_
9
10 #include <Model.h>
11 #include <ModelAPI_AttributeInteger.h>
12
13 #include <TDF_Label.hxx>
14 #include <TDataStd_Integer.hxx>
15
16 /**\class Model_AttributeInteger
17  * \ingroup DataModel
18  * \brief Attribute that contains integer (int).
19  */
20
21 class Model_AttributeInteger : public ModelAPI_AttributeInteger
22 {
23   Handle_TDataStd_Integer myInteger;
24  public:
25   /// Defines the int value
26   MODEL_EXPORT virtual void setValue(const int theValue);
27
28   /// Returns the int value
29   MODEL_EXPORT virtual int value();
30
31  protected:
32   /// Initializes attributes
33   Model_AttributeInteger(TDF_Label& theLabel);
34
35   friend class Model_Data;
36 };
37
38 #endif