1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_AttributeInteger.h
5 // Author: Mikhail PONIKAROV
7 #ifndef MODELAPI_ATTRIBUTEINTEGER_H_
8 #define MODELAPI_ATTRIBUTEINTEGER_H_
11 #include <ModelAPI_Attribute.h>
16 /**\class ModelAPI_AttributeInteger
18 * \brief API for the attribute that contains integer (int).
21 class ModelAPI_AttributeInteger : public ModelAPI_Attribute
24 /// Defines the integer value
25 MODELAPI_EXPORT virtual void setValue(const int theValue) = 0;
27 /// Returns the inhteger value
28 MODELAPI_EXPORT virtual int value() = 0;
30 /// Returns the type of this class of attributes
31 MODELAPI_EXPORT static std::string typeId()
36 /// Returns the type of this class of attributes, not static method
37 MODELAPI_EXPORT virtual std::string attributeType();
39 /// To virtually destroy the fields of successors
40 MODELAPI_EXPORT virtual ~ModelAPI_AttributeInteger();
43 /// Objects are created for features automatically
44 MODELAPI_EXPORT ModelAPI_AttributeInteger();
47 //! Pointer on double attribute
48 typedef std::shared_ptr<ModelAPI_AttributeInteger> AttributeIntegerPtr;