1 // Copyright (C) 2014-20xx CEA/DEN, EDF R&D
3 // File: ModelAPI_AttributeBoolean.h
4 // Created: 2 june 2014
5 // Author: Vitaly Smetannikov
7 #ifndef MODELAPI_ATTRIBUTEBOOLEAN_H_
8 #define MODELAPI_ATTRIBUTEBOOLEAN_H_
10 #include "ModelAPI_Attribute.h"
12 /**\class ModelAPI_AttributeBoolean
14 * \brief Attribute that contains boolean value.
17 class ModelAPI_AttributeBoolean : public ModelAPI_Attribute
20 /// Defines the double value
21 MODELAPI_EXPORT virtual void setValue(bool theValue) = 0;
23 /// Returns the double value
24 MODELAPI_EXPORT virtual bool value() = 0;
26 /// Returns the type of this class of attributes
27 MODELAPI_EXPORT static std::string typeId()
32 /// Returns the type of this class of attributes, not static method
33 MODELAPI_EXPORT virtual std::string attributeType();
35 /// To virtually destroy the fields of successors
36 MODELAPI_EXPORT virtual ~ModelAPI_AttributeBoolean();
39 /// Objects are created for features automatically
40 MODELAPI_EXPORT ModelAPI_AttributeBoolean();
43 typedef std::shared_ptr<ModelAPI_AttributeBoolean> AttributeBooleanPtr;