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
Remove extra includes
[modules/shaper.git]
/
src
/
Model
/
Model_Session.h
diff --git
a/src/Model/Model_Session.h
b/src/Model/Model_Session.h
index 72977752ad95671df6004834cc35e92f1007b8ea..41d62e4f9162fb0124ff7f969e271eb9da524583 100644
(file)
--- a/
src/Model/Model_Session.h
+++ b/
src/Model/Model_Session.h
@@
-69,6
+69,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();