+ boost::shared_ptr<ModelAPI_Data> myData; ///< manager of the data model of a feature
+ boost::shared_ptr<ModelAPI_Document> myDoc; ///< document this object belongs to
+ public:
+ /// By default object is displayed in the object browser.
+ virtual bool isInHistory()
+ {
+ return true;
+ }
+
+ /// Returns the data manager of this object: attributes
+ virtual boost::shared_ptr<ModelAPI_Data> data() const
+ {
+ return myData;
+ }
+
+ /// Returns true if object refers to the same data model instance
+ virtual bool isSame(const boost::shared_ptr<ModelAPI_Object>& theObject)
+ {
+ return theObject.get() == this;
+ }
+
+ /// Returns document this feature belongs to
+ virtual boost::shared_ptr<ModelAPI_Document> document() const
+ {
+ return myDoc;
+ }