]> Creatis software - crea.git/blobdiff - lib/creaDevManagerLib/modelCDMMain.h
new model classes
[crea.git] / lib / creaDevManagerLib / modelCDMMain.h
index d72d3b2430dd36209562c974004d4f0076495e26..6a104704912fcd57bd2a7413ff27db38550be98d 100644 (file)
@@ -2,7 +2,7 @@
 # ---------------------------------------------------------------------
 #
 # Copyright (c) CREATIS (Centre de Recherche en Acquisition et Traitement de l'Image 
-#                        pour la Santé)
+#                        pour la Sant)
 # Authors : Eduardo Davila, Frederic Cervenansky, Claire Mouton
 # Previous Authors : Laurent Guigues, Jean-Pierre Roux
 # CreaTools website : www.creatis.insa-lyon.fr/site/fr/creatools_accueil
 #  The fact that you are presently reading this means that you have had
 #  knowledge of the CeCILL-B license and that you accept its terms.
 # ------------------------------------------------------------------------ 
-*/ 
-
-
+ */
 
 /*
  * modelCDMMain.h
  *
  *  Created on: 13/11/2012
- *      Author: daniel
+ *      Author: Daniel Felipe Gonzalez Obando
  */
 
 #ifndef MODELCDMMAIN_H_
 #define MODELCDMMAIN_H_
 
+#include<iostream>
+
 #include "modelCDMProject.h"
 
 class modelCDMMain
@@ -45,8 +45,25 @@ public:
   modelCDMMain();
   ~modelCDMMain();
 
-  modelCDMProject* GetProject();
-  void SetProject(modelCDMProject* project);
+  const modelCDMProject* GetProject() const;
+
+  bool CreateProject(
+      const std::string& name,
+      const std::string& location,
+      std::string*& result,
+      const std::string& author = "unknown",
+      const std::string& description = "no description"
+  );
+  bool OpenProject(
+      const std::string& path,
+      std::string*& result
+  );
+  bool RefreshProject(
+      std::string*& result
+  );
+  bool CloseProject(
+      std::string*& result
+  );
 
 private:
   modelCDMProject* project;