20 #ifndef ModelAPI_AttributeReference_H_
21 #define ModelAPI_AttributeReference_H_
23 #include "ModelAPI_Attribute.h"
24 #include <ModelAPI_Feature.h>
35 MODELAPI_EXPORT
virtual void setValue(ObjectPtr theObject) = 0;
38 MODELAPI_EXPORT
virtual ObjectPtr
value() = 0;
41 MODELAPI_EXPORT
static std::string
typeId()
57 typedef std::shared_ptr<ModelAPI_AttributeReference> AttributeReferencePtr;
Attribute that contains reference to feature (located in the same document).
Definition: ModelAPI_AttributeReference.h:32
ModelAPI_AttributeReference()
Objects are created for features automatically.
Definition: ModelAPI_AttributeReference.cpp:31
static std::string typeId()
Returns the type of this class of attributes.
Definition: ModelAPI_AttributeReference.h:41
virtual ObjectPtr value()=0
Returns object referenced from this attribute.
virtual void setValue(ObjectPtr theObject)=0
Defines the object referenced from this attribute.
virtual ~ModelAPI_AttributeReference()
To virtually destroy the fields of successors.
Definition: ModelAPI_AttributeReference.cpp:27
virtual std::string attributeType()
Returns the type of this class of attributes, not static method.
Definition: ModelAPI_AttributeReference.cpp:22
Generic attribute of the Object.
Definition: ModelAPI_Attribute.h:34