X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Session.h;h=41d62e4f9162fb0124ff7f969e271eb9da524583;hb=50c050906e6b5926727fcbadcbf4247326ef60be;hp=72977752ad95671df6004834cc35e92f1007b8ea;hpb=4783f146b71a48c651523fcf0e12367bcf3d1fa8;p=modules%2Fshaper.git diff --git a/src/Model/Model_Session.h b/src/Model/Model_Session.h index 72977752a..41d62e4f9 100644 --- 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 moduleDocument(); + /// Returns the document by ID, loads if not loaded yet. Returns null if no such document. + MODEL_EXPORT virtual std::shared_ptr document(std::string theDocID); + /// Return true if root document has been already created MODEL_EXPORT virtual bool hasModuleDocument();