-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmediatheque.h
37 lines (33 loc) · 1001 Bytes
/
mediatheque.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef MEDIATHEQUE_H
#define MEDIATHEQUE_H
#include "include.h"
#include "ressource.h"
class mediatheque
{
private:
int nb_ressource, nb_livre, nb_revue, nb_cd, nb_vhs, nb_dvd, nb_docnum;
string nom_media;
std::vector <ressource*> base_donnees;
std::vector <bool> base_recherche;
public:
mediatheque();
~mediatheque();
void add (std::string param);
void save (std::string param);
int load (std::string param);
void search (std::string param);
void list ();
void clear ();
void conchita (); //Permet d'ordonner la médiathèque
int gestion(std::string param, int mode);
void reset ();
int getNextId (type_ressource type);
string miseenforme(string modif, int taille);
void reload();
string getNom_media() const;
void setNom_media(const string &value);
void load_state(utilisateur user);
void save_state(utilisateur user) const;
void resetID();
};
#endif // MEDIATHEQUE_H