X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaDevManagerLib%2FmodelCDMMain.h;h=d75355ce27f0a70ac624482ec3a2e718c95f005d;hb=311bdcc514f85386f3bbbef9ff6a88bf69fd930f;hp=d72d3b2430dd36209562c974004d4f0076495e26;hpb=ca800a1a9a78f119d37d9642ea29acb7c9b9a323;p=crea.git diff --git a/lib/creaDevManagerLib/modelCDMMain.h b/lib/creaDevManagerLib/modelCDMMain.h index d72d3b2..d75355c 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,25 @@ # 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 + +#include +#include + +#include "modelCDMIProjectTreeNode.h" #include "modelCDMProject.h" class modelCDMMain @@ -45,11 +50,32 @@ public: modelCDMMain(); ~modelCDMMain(); - modelCDMProject* GetProject(); - void SetProject(modelCDMProject* project); + modelCDMProject* GetProject() const; + std::map< wxTreeItemId, modelCDMIProjectTreeNode* >& GetModelElements(); + + + 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; + std::map< wxTreeItemId, modelCDMIProjectTreeNode* > modelElements; };