1 // File: Model_AttributeReference.h
3 // Author: Mikhail PONIKAROV
5 #ifndef Model_AttributeReference_H_
6 #define Model_AttributeReference_H_
9 #include "ModelAPI_AttributeReference.h"
10 #include <ModelAPI_Feature.h>
11 #include <TDF_Label.hxx>
12 #include <TDF_Reference.hxx>
14 /**\class Model_AttributeReference
16 * \brief Attribute that contains reference to feature (located in the same document).
19 class Model_AttributeReference : public ModelAPI_AttributeReference
21 Handle_TDF_Reference myRef; ///< references to the feature label
23 /// Defines the object referenced from this attribute
24 MODEL_EXPORT virtual void setValue(ObjectPtr theObject);
26 /// Returns object referenced from this attribute
27 MODEL_EXPORT virtual ObjectPtr value();
30 /// Objects are created for features automatically
31 MODEL_EXPORT Model_AttributeReference(TDF_Label& theLabel);
33 friend class Model_Data;