Salome HOME
Remove extra includes
[modules/shaper.git] / src / Model / Model_Session.h
index 72977752ad95671df6004834cc35e92f1007b8ea..41d62e4f9162fb0124ff7f969e271eb9da524583 100644 (file)
@@ -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 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();