20 #ifndef ModelAPI_AttributeRefAttr_H_
21 #define ModelAPI_AttributeRefAttr_H_
23 #include "ModelAPI_Attribute.h"
24 #include "ModelAPI_Feature.h"
39 MODELAPI_EXPORT
virtual void setAttr(AttributePtr theAttr) = 0;
42 MODELAPI_EXPORT
virtual AttributePtr
attr() = 0;
45 MODELAPI_EXPORT
virtual void setObject(ObjectPtr theFeature) = 0;
48 MODELAPI_EXPORT
virtual ObjectPtr
object() = 0;
51 MODELAPI_EXPORT
static std::string
typeId()
67 typedef std::shared_ptr<ModelAPI_AttributeRefAttr> AttributeRefAttrPtr;
Attribute that contains reference to an attribute of a feature or reference to a feature (switchable)
Definition: ModelAPI_AttributeRefAttr.h:33
virtual bool isObject()=0
Returns true if this attribute references to a object (not to the attribute)
virtual ~ModelAPI_AttributeRefAttr()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeRefAttr.cpp:28
ModelAPI_AttributeRefAttr()
Objects are created for features automatically.
Definition: ModelAPI_AttributeRefAttr.cpp:32
virtual void setAttr(AttributePtr theAttr)=0
Defines the reference to the attribute.
virtual ObjectPtr object()=0
Returns object referenced from this attribute.
virtual AttributePtr attr()=0
Returns attribute referenced from this attribute.
virtual std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeRefAttr.cpp:23
static std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeRefAttr.h:51
virtual void setObject(ObjectPtr theFeature)=0
Defines the reference to the object.
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34