1 // File: Model_AttributeDocRef.h
3 // Author: Mikhail PONIKAROV
5 #ifndef Model_AttributeDocRef_HeaderFile
6 #define Model_AttributeDocRef_HeaderFile
9 #include "ModelAPI_AttributeDocRef.h"
10 #include <TDataStd_Comment.hxx>
11 #include <TDF_Label.hxx>
13 /**\class Model_AttributeDocRef
15 * \brief Attribute that contains reference to another document.
18 class MODEL_EXPORT Model_AttributeDocRef : public ModelAPI_AttributeDocRef
20 Handle_TDataStd_Comment myComment; ///< reference to document is identified as string-id
22 /// Defines the document referenced from this attribute
23 virtual void setValue(std::shared_ptr<ModelAPI_Document> theDoc);
25 /// Returns document referenced from this attribute
26 virtual std::shared_ptr<ModelAPI_Document> value();
29 /// Initializes attibutes
30 Model_AttributeDocRef(TDF_Label& theLabel);
32 friend class Model_Object;