-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBibliotheque.h
48 lines (37 loc) · 999 Bytes
/
Bibliotheque.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
38
39
40
41
42
43
44
45
46
47
48
#ifndef BIBLIOTHEQUE_BIBLIOTHEQUE_H
#define BIBLIOTHEQUE_BIBLIOTHEQUE_H
#include "Livre.h"
#include <vector>
class Bibliotheque {
private:
string nom;
string adresse;
int code;
static int codeNext;
vector<Livre*> listeLivres;
vector<Livre*> emprunts;
int limEmprunts;
public:
Bibliotheque(string, string);
Bibliotheque(string, string, int);
string getNom() const;
int getCode() const;
int getLimEmprunts() const;
void affiche();
void ajouterLivre(Livre*);
void afficheLivres();
void afficheLivreParCategorie(int);
vector<Livre*> getListeLivres() const;
bool possedeLivreListe(int);
bool possedeLivreEmprunts(int);
bool possedeLivre(int);
Livre* searchListeLivre(int);
Livre* searchEmprunts(int);
Livre* search(int);
void pret(Bibliotheque*, int);
void supprimer(int);
void demande(Bibliotheque*, string);
void rendre();
Bibliotheque();
};
#endif //BIBLIOTHEQUE_BIBLIOTHEQUE_H