mirror of
https://github.com/BreizhHardware/projetCGroupe8.git
synced 2026-03-18 21:30:32 +01:00
45 lines
1.2 KiB
C
45 lines
1.2 KiB
C
#ifndef PROJETCGROUPE8_MAIN_FILMOTHEQUE_H
|
|
#define PROJETCGROUPE8_MAIN_FILMOTHEQUE_H
|
|
|
|
#include "NodeTrie.h"
|
|
#include <stdbool.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
|
|
struct Filmotheque{
|
|
char* directorMax;
|
|
int maxMovies;
|
|
struct NodeTrie* director;
|
|
};
|
|
|
|
char* toLower(char* name);
|
|
|
|
struct Filmotheque* createEmptyFilmo();
|
|
|
|
void initFilmo(char* nameFile,struct List* table,struct Filmotheque* filmo);
|
|
|
|
struct List* addMovieInTable(struct List* table[LENGTH],struct Movie* movie);
|
|
|
|
void addMovie(struct Filmotheque* filmotheque, struct Movie* movie);
|
|
|
|
struct List* searchByDirector(struct Filmotheque* filmotheque, char* director);
|
|
|
|
struct List* searchByTime(struct List* tableau[LENGTH], char* time);
|
|
|
|
struct List* searchByCategory(struct List* table[LENGTH], char* category);
|
|
|
|
struct List* searchByFilm(struct List* table[LENGTH], char* name);
|
|
|
|
void deleteFilmotheque(struct Filmotheque* filmotheque, struct List* table[LENGTH]);
|
|
|
|
int readRequest(char* request, struct List* tableau[LENGTH],struct Filmotheque* filmo);
|
|
|
|
void printResultInFile(struct List* result, double time);
|
|
|
|
|
|
void deleteRequest();
|
|
|
|
void deleteResult();
|
|
|
|
#endif //PROJETCGROUPE8_MAIN_FILMOTHEQUE_H
|