Salome HOME
projects
/
modules
/
shaper.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'Dev_0.7.1' of newgeom:newgeom.git into Dev_0.7.1
[modules/shaper.git]
/
src
/
Model
/
Model_Session.h
diff --git
a/src/Model/Model_Session.h
b/src/Model/Model_Session.h
index 72977752ad95671df6004834cc35e92f1007b8ea..19172f3877389cb708f750595acd544f1d353b6e 100644
(file)
--- a/
src/Model/Model_Session.h
+++ b/
src/Model/Model_Session.h
@@
-1,3
+1,5
@@
+// Copyright (C) 2014-20xx CEA/DEN, EDF R&D
+
// File: Model_Session.hxx
// Created: 20 Mar 2014
// Author: Mikhail PONIKAROV
// File: Model_Session.hxx
// Created: 20 Mar 2014
// Author: Mikhail PONIKAROV
@@
-69,6
+71,9
@@
class Model_Session : public ModelAPI_Session, public Events_Listener
/// Returns the root document of the application (that may contains sub-documents)
MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Document> moduleDocument();
/// Returns the root document of the application (that may contains sub-documents)
MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Document> moduleDocument();
+ /// Returns the document by ID, loads if not loaded yet. Returns null if no such document.
+ MODEL_EXPORT virtual std::shared_ptr<ModelAPI_Document> document(std::string theDocID);
+
/// Return true if root document has been already created
MODEL_EXPORT virtual bool hasModuleDocument();
/// Return true if root document has been already created
MODEL_EXPORT virtual bool hasModuleDocument();