Salome HOME
The data model has been rolled back to previous version.
[modules/hydro.git] / src / HYDROData / HYDROData_Application.h
index b0fa53db4a5adb69840cbe6ed81308a4521c2514..b20eaefc8d820e7b8563fbd697485b71164e07ab 100644 (file)
@@ -38,13 +38,17 @@ public: // Redefined OCAF methods
 
 private:
   //! Returns document by its study ID, if document doesn't exists return null
-  Handle(HYDROData_Document) GetDocument(int theStudyID);
+  Handle(HYDROData_Document) GetDocument(int theStudyID) const;
+
+  //! Get study id by document instance, if document doesn't exists return false
+  bool GetDocumentId(const Handle(HYDROData_Document)& theDocument,
+                     int&                              theDocId) const;
 
   //! Appends document to the application
-  void AddDocument(int theStudyID, Handle(HYDROData_Document) theDocument);
+  void AddDocument(int theStudyID, const Handle(HYDROData_Document)& theDocument);
 
   //! Removes document from the application
-  void RemoveDocument(Handle(HYDROData_Document) theDocument);
+  void RemoveDocument( const Handle(HYDROData_Document)& theDocument );
 
   //! map from SALOME study ID to the document
   DataMapOfStudyIDDocument myDocuments;