1 // File: ModelAPI_AttributeInteger.h
3 // Author: Mikhail PONIKAROV
5 #ifndef MODELAPI_ATTRIBUTEINTEGER_H_
6 #define MODELAPI_ATTRIBUTEINTEGER_H_
9 #include <ModelAPI_Attribute.h>
14 /**\class ModelAPI_AttributeInteger
16 * \brief API for the attribute that contains integer (int).
19 class ModelAPI_AttributeInteger : public ModelAPI_Attribute
22 /// Defines the integer value
23 MODELAPI_EXPORT virtual void setValue(const int theValue) = 0;
25 /// Returns the inhteger value
26 MODELAPI_EXPORT virtual int value() = 0;
28 /// Returns the type of this class of attributes
29 MODELAPI_EXPORT static std::string type()
34 /// Returns the type of this class of attributes, not static method
35 MODELAPI_EXPORT virtual std::string attributeType()
40 /// To virtually destroy the fields of successors
41 MODELAPI_EXPORT virtual ~ModelAPI_AttributeInteger()
46 /// Objects are created for features automatically
47 MODELAPI_EXPORT ModelAPI_AttributeInteger()
52 //! Pointer on double attribute
53 typedef boost::shared_ptr<ModelAPI_AttributeInteger> AttributeIntegerPtr;