Salome HOME
projects
/
modules
/
hydro.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor changes.
[modules/hydro.git]
/
src
/
HYDROData
/
HYDROData_Application.h
diff --git
a/src/HYDROData/HYDROData_Application.h
b/src/HYDROData/HYDROData_Application.h
index b0fa53db4a5adb69840cbe6ed81308a4521c2514..b20eaefc8d820e7b8563fbd697485b71164e07ab 100644
(file)
--- a/
src/HYDROData/HYDROData_Application.h
+++ b/
src/HYDROData/HYDROData_Application.h
@@
-38,13
+38,17
@@
public: // Redefined OCAF methods
private:
//! Returns document by its study ID, if document doesn't exists return null
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
//! 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
//! 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;
//! map from SALOME study ID to the document
DataMapOfStudyIDDocument myDocuments;