Salome HOME
Added the hasRootDocument method for GUI NewDocument checking
[modules/shaper.git] / src / Model / Model_Application.h
index c4f578f0443e755afdbd314578199f3d91457f94..3865434796cad755f7869adb96677e18fb41d2f4 100644 (file)
@@ -31,6 +31,8 @@ public:
   MODEL_EXPORT static Handle_Model_Application getApplication();
   //! Returns the main document (on first call creates it) by the string identifier
   MODEL_EXPORT const std::shared_ptr<Model_Document>& getDocument(std::string theDocID);
+  //! Returns true if document has been created
+  MODEL_EXPORT bool hasDocument(std::string theDocID);
   //! Deletes the document from the application
   MODEL_EXPORT void deleteDocument(std::string theDocID);