X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMMain.h;fp=lib%2FcreaDevManagerLib%2FmodelCDMMain.h;h=6a104704912fcd57bd2a7413ff27db38550be98d;hb=e2223b619fa37daaf6103b34b39e789efc1a0b94;hp=d72d3b2430dd36209562c974004d4f0076495e26;hpb=39ca49498425bb3e3372604e9321dfe3a38e8874;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMMain.h b/lib/creaDevManagerLib/modelCDMMain.h index d72d3b2..6a10470 100644 --- a/lib/creaDevManagerLib/modelCDMMain.h +++ b/lib/creaDevManagerLib/modelCDMMain.h @@ -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 @@ -23,20 +23,20 @@ # 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 + #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;