Salome HOME
Make generated by SWIG python script installed: refs #17
[modules/shaper.git] / src / Model / Model_Application.cxx
index a8c8966b3962cb43eb08f6e3e72faea022fc9ffa..40704967e8de9cef5e8a568dac24330bd0fc5f37 100644 (file)
@@ -12,18 +12,12 @@ using namespace std;
 
 static Handle_Model_Application TheApplication = new Model_Application;
 
-//=======================================================================
-//function : getApplication
-//purpose  : 
 //=======================================================================
 Handle(Model_Application) Model_Application::getApplication()
 {
   return TheApplication;
 }
 
-//=======================================================================
-//function : getDocument
-//purpose  : 
 //=======================================================================
 const std::shared_ptr<Model_Document>& Model_Application::getDocument(string theDocID)
 {
@@ -41,8 +35,11 @@ void Model_Application::deleteDocument(string theDocID)
 }
 
 //=======================================================================
-//function : OCAFApp_Application
-//purpose  : 
+bool Model_Application::hasDocument(std::string theDocID)
+{
+  return myDocs.find(theDocID) != myDocs.end();
+}
+
 //=======================================================================
 Model_Application::Model_Application()
 {
@@ -51,18 +48,12 @@ Model_Application::Model_Application()
   TheKeepHandle = this;
 }
 
-//=======================================================================
-//function : Formats
-//purpose  : 
 //=======================================================================
 void Model_Application::Formats(TColStd_SequenceOfExtendedString& theFormats)
 {
   theFormats.Append(TCollection_ExtendedString("BinOcaf")); // standard binary schema
 }
 
-//=======================================================================
-//function : ResourcesName
-//purpose  : 
 //=======================================================================
 Standard_CString Model_Application::ResourcesName()
 {