From 1b7ab03183606aadd9fa987f824cf466d471b896 Mon Sep 17 00:00:00 2001 From: rubisalpha Date: Fri, 13 Feb 2026 13:50:37 +0000 Subject: [PATCH] Actualiser db.h --- db.h | 22 +++------------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/db.h b/db.h index ef1c07e..caea162 100644 --- a/db.h +++ b/db.h @@ -3,30 +3,14 @@ #include #include -#include "user.h" struct Student { - int id; std::string nom; int notes[3]; }; -// --- Connexion et fermeture --- -bool openDB(const std::string& filename); -void closeDB(); - -// --- Authentification --- -int loginUser(const std::string& login, const std::string& password); - -// --- Étudiants --- -std::vector getAllStudents(); // ADMIN/PROF -Student getStudentByLogin(const std::string& login); // STUDENT - -// --- Notes --- -bool updateNote(int studentId, int noteIndex, int newNote); - -// --- Export / Import --- -bool exportData(const std::string& filename, const std::string& role, const std::string& login); -bool importData(const std::string& filename, const std::string& role); +// Export / Import +bool exportData(const std::string& filename, const std::vector& students); +bool importData(const std::string& filename, std::vector& students); #endif \ No newline at end of file