]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMMain.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMMain.cpp
diff --git a/lib/creaDevManagerLib/modelCDMMain.cpp b/lib/creaDevManagerLib/modelCDMMain.cpp
new file mode 100644 (file)
index 0000000..9cde404
--- /dev/null
@@ -0,0 +1,32 @@
+/*
+ * modelCDMMain.cpp
+ *
+ *  Created on: 13/11/2012
+ *      Author: daniel
+ */
+
+#include "modelCDMMain.h"
+
+#include <iostream>
+
+modelCDMMain::modelCDMMain()
+{
+  this->project = NULL;
+}
+modelCDMMain::~modelCDMMain()
+{
+  if (this->project != NULL)
+    delete this->project;
+}
+
+modelCDMProject* modelCDMMain::GetProject()
+{
+  return this->project;
+}
+void modelCDMMain::SetProject(modelCDMProject* project)
+{
+  if(this->project != NULL && this->project != project)
+    delete this->project;
+  this->project = project;
+}
+