Salome HOME
Merge branch 'master' of newgeom:newgeom.git
[modules/shaper.git] / src / ModelAPI / ModelAPI_Object.h
index 7f78a35ce277e7b98bb3ae200087394094398b61..cf81f99bfee1dda02e24ba738a498ef8c6aeaf65 100644 (file)
@@ -11,6 +11,7 @@
 
 class ModelAPI_AttributeDocRef;
 class ModelAPI_AttributeDouble;
+class ModelAPI_Document;
 
 /**\class ModelAPI_Object
  * \ingroup DataModel
@@ -39,6 +40,9 @@ public:
   /// \param theAttrType type of the created attribute (received from the type method)
   virtual void addAttribute(std::string theID, std::string theAttrType) = 0;
 
+  /// Returns the document of this data
+  virtual std::shared_ptr<ModelAPI_Document> document() = 0;
+
 protected:
   /// Objects are created for features automatically
   ModelAPI_Object()