]> Creatis software - crea.git/blob - lib/creaDevManagerLib/modelCDMMain.cpp
Feature #1711
[crea.git] / lib / creaDevManagerLib / modelCDMMain.cpp
1 /*
2  * modelCDMMain.cpp
3  *
4  *  Created on: 13/11/2012
5  *      Author: daniel
6  */
7
8 #include "modelCDMMain.h"
9
10 #include <iostream>
11
12 modelCDMMain::modelCDMMain()
13 {
14   this->project = NULL;
15 }
16 modelCDMMain::~modelCDMMain()
17 {
18   if (this->project != NULL)
19     delete this->project;
20 }
21
22 modelCDMProject* modelCDMMain::GetProject()
23 {
24   return this->project;
25 }
26 void modelCDMMain::SetProject(modelCDMProject* project)
27 {
28   if(this->project != NULL && this->project != project)
29     delete this->project;
30   this->project = project;
31 }
32