1 // File: ModelAPI_AttributeDouble.h
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_AttributeDouble_H_
6 #define ModelAPI_AttributeDouble_H_
8 #include "ModelAPI_Attribute.h"
10 /**\class ModelAPI_AttributeDouble
12 * \brief Attribute that contains real value with double precision.
15 class ModelAPI_AttributeDouble : public ModelAPI_Attribute
18 /// Defines the double value
19 MODELAPI_EXPORT virtual void setValue(const double theValue) = 0;
21 /// Returns the double value
22 MODELAPI_EXPORT virtual double value() = 0;
24 /// Returns the type of this class of attributes
25 MODELAPI_EXPORT static std::string type()
30 /// Returns the type of this class of attributes, not static method
31 MODELAPI_EXPORT virtual std::string attributeType()
36 /// To virtually destroy the fields of successors
37 MODELAPI_EXPORT virtual ~ModelAPI_AttributeDouble()
42 /// Objects are created for features automatically
43 MODELAPI_EXPORT ModelAPI_AttributeDouble()
48 //! Pointer on double attribute
49 typedef boost::shared_ptr<ModelAPI_AttributeDouble> AttributeDoublePtr;