1 // File: Model_AttributeRefAttr.h
3 // Author: Mikhail PONIKAROV
5 #ifndef Model_AttributeRefAttr_HeaderFile
6 #define Model_AttributeRefAttr_HeaderFile
9 #include "ModelAPI_AttributeRefAttr.h"
10 #include <TDF_Label.hxx>
11 #include <TDF_Reference.hxx>
12 #include <TDataStd_Comment.hxx>
14 /**\class Model_AttributeRefAttr
16 * \brief Attribute that contains reference to an attribute of a feature
17 * (located in the same document).
20 class Model_AttributeRefAttr : public ModelAPI_AttributeRefAttr
22 Handle_TDF_Reference myRef; ///< reference to the feature label
23 Handle_TDataStd_Comment myID; ///< ID of the referenced attirbute
25 /// Defines the attribute referenced from this attribute
26 MODEL_EXPORT virtual void setValue(boost::shared_ptr<ModelAPI_Attribute> theAttr);
28 /// Returns attribute referenced from this attribute
29 MODEL_EXPORT virtual boost::shared_ptr<ModelAPI_Attribute> value();
32 /// Objects are created for features automatically
33 MODEL_EXPORT Model_AttributeRefAttr(TDF_Label& theLabel);
35 friend class Model_Data;