diff --git a/CMakeLists.txt b/CMakeLists.txt index a6752c2..04151c0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -33,11 +33,11 @@ set(SOURCE_FILES src/controller/extern_files_manager.c src/model/structures.h src/controller/struct_to_BDD_patient.c - src/controller/BDD_to_struct_patient.c + src/model/BDD_to_struct_patient.c src/controller/struct_to_BDD_folder.c src/controller/struct_to_BDD_session.c - src/controller/BDD_to_struct_session.c - src/controller/BDD_to_struct_folder.c) + src/model/BDD_to_struct_session.c + src/model/BDD_to_struct_folder.c) add_executable(Kinesia ${SOURCE_FILES}) @@ -86,9 +86,9 @@ set(SOURCE_FILES_TEST src/controller/struct_to_BDD_patient.c src/controller/struct_to_BDD_folder.c src/controller/struct_to_BDD_session.c - src/controller/BDD_to_struct_patient.c - src/controller/BDD_to_struct_session.c - src/controller/BDD_to_struct_folder.c) + src/model/BDD_to_struct_patient.c + src/model/BDD_to_struct_session.c + src/model/BDD_to_struct_folder.c) add_executable(UnitTest tests/UTest.c ${SOURCE_FILES_TEST}) diff --git a/src/model/BDD_to_struct_folder.c b/src/model/BDD_to_struct_folder.c index a71df0a..6e9907d 100644 --- a/src/model/BDD_to_struct_folder.c +++ b/src/model/BDD_to_struct_folder.c @@ -7,7 +7,7 @@ #include #include #include -#include "../model/folder_manager.h" +#include "folder_manager.h" #include /*! diff --git a/src/model/BDD_to_struct_folder.h b/src/model/BDD_to_struct_folder.h index 2f27aa3..1d08e1e 100644 --- a/src/model/BDD_to_struct_folder.h +++ b/src/model/BDD_to_struct_folder.h @@ -6,7 +6,7 @@ #ifndef LOGICIEL_KINE_BDD_TO_STRUCT_FOLDER_H #define LOGICIEL_KINE_BDD_TO_STRUCT_FOLDER_H -#include "../model/structures.h" +#include "structures.h" int getNbFolder(int idPatient); Folder* getFolder(int idFolder); diff --git a/src/model/BDD_to_struct_patient.c b/src/model/BDD_to_struct_patient.c index 2aadc3c..bf6aef2 100644 --- a/src/model/BDD_to_struct_patient.c +++ b/src/model/BDD_to_struct_patient.c @@ -4,7 +4,7 @@ */ #include "BDD_to_struct_patient.h" -#include "../model/patient_manager.h" +#include "patient_manager.h" #include #include #include diff --git a/src/model/BDD_to_struct_patient.h b/src/model/BDD_to_struct_patient.h index feaecde..1b3e8b5 100644 --- a/src/model/BDD_to_struct_patient.h +++ b/src/model/BDD_to_struct_patient.h @@ -6,7 +6,7 @@ #ifndef LOGICIEL_KINE_BDD_TO_STRUCT_PATIENT_H #define LOGICIEL_KINE_BDD_TO_STRUCT_PATIENT_H -#include "../model/structures.h" +#include "structures.h" int getNbPatient(Archived a); char* getNameFirstnamePatient(int id); diff --git a/src/model/BDD_to_struct_session.c b/src/model/BDD_to_struct_session.c index aee620a..fb4943a 100644 --- a/src/model/BDD_to_struct_session.c +++ b/src/model/BDD_to_struct_session.c @@ -4,8 +4,8 @@ */ #include "BDD_to_struct_session.h" -#include "../model/session_manager.h" -#include "display_helpers.h" +#include "session_manager.h" +#include "../controller/display_helpers.h" #include #include #include diff --git a/src/model/BDD_to_struct_session.h b/src/model/BDD_to_struct_session.h index f617b33..692044a 100644 --- a/src/model/BDD_to_struct_session.h +++ b/src/model/BDD_to_struct_session.h @@ -6,7 +6,7 @@ #ifndef LOGICIEL_KINE_BDD_TO_STRUCT_SESSION_H #define LOGICIEL_KINE_BDD_TO_STRUCT_SESSION_H -#include "../model/structures.h" +#include "structures.h" Session * getSession(int idSession); Session * getSession0(int idFolder); diff --git a/src/view/editor_views.c b/src/view/editor_views.c index 53690df..1d45e6f 100644 --- a/src/view/editor_views.c +++ b/src/view/editor_views.c @@ -13,8 +13,8 @@ #include "../controller/struct_to_BDD_patient.h" #include "../controller/struct_to_BDD_session.h" #include "../controller/struct_to_BDD_folder.h" -#include "../controller/BDD_to_struct_folder.h" -#include "../controller/BDD_to_struct_session.h" +#include "../model/BDD_to_struct_folder.h" +#include "../model/BDD_to_struct_session.h" #include "../controller/display_helpers.h" #include "../controller/UI_to_struct.h" #include "../model/folder_manager.h" diff --git a/src/view/editor_views.h b/src/view/editor_views.h index 7e352e7..e504ef9 100644 --- a/src/view/editor_views.h +++ b/src/view/editor_views.h @@ -8,7 +8,7 @@ #include "../model/structures.h" #include "../model/patient_manager.h" -#include "../controller/BDD_to_struct_patient.h" +#include "../model/BDD_to_struct_patient.h" #include "../controller/extern_files_manager.h" /** diff --git a/src/view/home_view.c b/src/view/home_view.c index 26af482..6594423 100644 --- a/src/view/home_view.c +++ b/src/view/home_view.c @@ -8,8 +8,8 @@ #include "work_view.h" #include "editor_views.h" #include "../controller/display_helpers.h" -#include "../controller/BDD_to_struct_session.h" -#include "../controller/BDD_to_struct_folder.h" +#include "../model/BDD_to_struct_session.h" +#include "../model/BDD_to_struct_folder.h" #include "../model/patient_manager.h" #include "../model/folder_manager.h" #include "../model/session_manager.h" diff --git a/src/view/work_view.c b/src/view/work_view.c index 7a40850..42f3027 100644 --- a/src/view/work_view.c +++ b/src/view/work_view.c @@ -10,8 +10,8 @@ #include "editor_views.h" #include "../controller/UI_to_struct.h" #include "../controller/display_helpers.h" -#include "../controller/BDD_to_struct_folder.h" -#include "../controller/BDD_to_struct_session.h" +#include "../model/BDD_to_struct_folder.h" +#include "../model/BDD_to_struct_session.h" #include "../controller/struct_to_BDD_session.h" #include "../model/session_manager.h"