Skip to content

Commit

Permalink
Move files from controller to model
Browse files Browse the repository at this point in the history
  • Loading branch information
JulienPriam committed May 23, 2021
1 parent d822e38 commit f6f6f26
Show file tree
Hide file tree
Showing 11 changed files with 20 additions and 20 deletions.
12 changes: 6 additions & 6 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down Expand Up @@ -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})

Expand Down
2 changes: 1 addition & 1 deletion src/model/BDD_to_struct_folder.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <sqlite3.h>
#include <stdlib.h>
#include <stdio.h>
#include "../model/folder_manager.h"
#include "folder_manager.h"
#include <string.h>

/*!
Expand Down
2 changes: 1 addition & 1 deletion src/model/BDD_to_struct_folder.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion src/model/BDD_to_struct_patient.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
*/

#include "BDD_to_struct_patient.h"
#include "../model/patient_manager.h"
#include "patient_manager.h"
#include <string.h>
#include <sqlite3.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/model/BDD_to_struct_patient.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/model/BDD_to_struct_session.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sqlite3.h>
#include <stdio.h>
#include <stdlib.h>
Expand Down
2 changes: 1 addition & 1 deletion src/model/BDD_to_struct_session.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions src/view/editor_views.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/view/editor_views.h
Original file line number Diff line number Diff line change
Expand Up @@ -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"

/**
Expand Down
4 changes: 2 additions & 2 deletions src/view/home_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions src/view/work_view.c
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down

0 comments on commit f6f6f26

Please sign in to comment.