1 // File: ModelAPI_AttributeDouble.h
3 // Author: Mikhail PONIKAROV
5 #ifndef ModelAPI_AttributeDouble_HeaderFile
6 #define ModelAPI_AttributeDouble_HeaderFile
8 #include "ModelAPI_Attribute.h"
10 /**\class ModelAPI_AttributeDouble
12 * \brief Attribute that contains real value with double precision.
15 class MODELAPI_EXPORT ModelAPI_AttributeDouble : public ModelAPI_Attribute
18 /// Defines the double value
19 virtual void setValue(double theValue) = 0;
21 /// Returns the double value
22 virtual double value() = 0;
24 /// Returns the type of this class of attributes
25 static std::string type() {return "Double";}
27 /// Returns the type of this class of attributes, not static method
28 virtual std::string attributeType() {return type();}
31 /// Objects are created for features automatically
32 ModelAPI_AttributeDouble()