IMPLEMENT_STANDARD_HANDLE(Model_Application, TDocStd_Application)
IMPLEMENT_STANDARD_RTTIEXT(Model_Application, TDocStd_Application)
+using namespace std;
+
static Handle_Model_Application TheApplication = new Model_Application;
//=======================================================================
//function : getDocument
//purpose :
//=======================================================================
-std::shared_ptr<Model_Document> Model_Application::getDocument(std::string theDocID)
+std::shared_ptr<Model_Document> Model_Application::getDocument(string theDocID)
{
if (myDocs.find(theDocID) != myDocs.end())
return myDocs[theDocID];
return aNew;
}
+void Model_Application::deleteDocument(string theDocID)
+{
+ myDocs.erase(theDocID);
+}
+
//=======================================================================
//function : OCAFApp_Application
//purpose :