20 #ifndef Model_AttributeDocRef_H_
21 #define Model_AttributeDocRef_H_
24 #include "ModelAPI_AttributeDocRef.h"
25 #include <TDataStd_Integer.hxx>
26 #include <TDF_Label.hxx>
36 Handle(TDataStd_Integer) myID;
40 MODEL_EXPORT
virtual void setValue(std::shared_ptr<ModelAPI_Document> theDoc);
43 MODEL_EXPORT
virtual std::shared_ptr<ModelAPI_Document>
value();
46 MODEL_EXPORT
virtual int docId();
Attribute that contains reference to another document.
Definition: ModelAPI_AttributeDocRef.h:32
Attribute that contains reference to another document.
Definition: Model_AttributeDocRef.h:34
virtual void reinit()
Reinitializes the internal state of the attribute (may be needed on undo/redo, abort,...
Definition: Model_AttributeDocRef.cpp:53
virtual void setValue(std::shared_ptr< ModelAPI_Document > theDoc)
Defines the document referenced from this attribute.
Definition: Model_AttributeDocRef.cpp:25
Model_AttributeDocRef(TDF_Label &theLabel)
Initializes attibutes.
Definition: Model_AttributeDocRef.cpp:43
virtual std::shared_ptr< ModelAPI_Document > value()
Returns document referenced from this attribute.
Definition: Model_AttributeDocRef.cpp:33
virtual int docId()
Returns the persisten ID of the document.
Definition: Model_AttributeDocRef.cpp:38
General object of the application that allows to get/set attributes from the document and compute res...
Definition: Model_Data.h:61