# ---------------------------------------------------------------------
#
# 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
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;