X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FModel%2FModel_Application.h;h=3d905dc41e35994026e0f9def396184112a65f7b;hb=50c050906e6b5926727fcbadcbf4247326ef60be;hp=09a1694c3871b9d8818cee69fd33f5bd0319d0d6;hpb=cd9217d7e87997ec8bc150a6d8c389e742ca0f84;p=modules%2Fshaper.git diff --git a/src/Model/Model_Application.h b/src/Model/Model_Application.h index 09a1694c3..3d905dc41 100644 --- a/src/Model/Model_Application.h +++ b/src/Model/Model_Application.h @@ -31,16 +31,20 @@ class Model_Application : public TDocStd_Application //! Retuns the application: one per process MODEL_EXPORT static Handle_Model_Application getApplication(); //! Returns the main document (on first call creates it) by the string identifier - MODEL_EXPORT const boost::shared_ptr& getDocument(std::string theDocID); + MODEL_EXPORT const std::shared_ptr& 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); + //! Deletes all documents existing in the application + MODEL_EXPORT void deleteAllDocuments(); //! Set path for the loaded by demand documents void setLoadPath(std::string thePath); //! Defines that specified document must be loaded by demand void setLoadByDemand(std::string theID); + //! Returns true if specified document must be loaded by demand + bool isLoadByDemand(std::string theID); public: // Redefined OCAF methods @@ -56,7 +60,7 @@ class Model_Application : public TDocStd_Application private: /// Map from string identifiers to created documents of an application - std::map > myDocs; + std::map > myDocs; /// Path for the loaded by demand documents std::string myPath; /// Path for the loaded by demand documents