+bool HYDROData_Application::GetDocumentId(const Handle(HYDROData_Document)& theDocument,
+ int& theDocId) const
+{
+ DataMapOfStudyIDDocument::Iterator aMapit( myDocuments );
+ for ( ; aMapit.More(); aMapit.Next() )
+ {
+ if ( aMapit.Value() != theDocument )
+ continue;
+
+ theDocId = aMapit.Key();
+ return true;
+ }
+
+ return false;
+}
+
+//=======================================================================
+//function : GetDocument
+//purpose :
+//=======================================================================
+Handle(HYDROData_Document) HYDROData_Application::GetDocument(int theStudyID) const