1 // File: ModelAPI_AttributeBoolean.h
2 // Created: 2 june 2014
3 // Author: Vitaly Smetannikov
5 #ifndef ModelAPI_AttributeBoolean_HeaderFile
6 #define ModelAPI_AttributeBoolean_HeaderFile
8 #include "ModelAPI_Attribute.h"
10 /**\class ModelAPI_AttributeBoolean
12 * \brief Attribute that contains boolean value.
15 class ModelAPI_AttributeBoolean : public ModelAPI_Attribute
18 /// Defines the double value
19 MODELAPI_EXPORT virtual void setValue(bool theValue) = 0;
21 /// Returns the double value
22 MODELAPI_EXPORT virtual bool value() = 0;
24 /// Returns the type of this class of attributes
25 MODELAPI_EXPORT static std::string type() {return "Boolean";}
27 /// Returns the type of this class of attributes, not static method
28 MODELAPI_EXPORT virtual std::string attributeType() {return type();}
30 /// To virtually destroy the fields of successors
31 MODELAPI_EXPORT virtual ~ModelAPI_AttributeBoolean() {}
34 /// Objects are created for features automatically
35 MODELAPI_EXPORT ModelAPI_AttributeBoolean() {}