-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompagnie.hpp
74 lines (67 loc) · 1.92 KB
/
compagnie.hpp
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
/*Turikumwe Fabrice E.
Allan Tarcy*/
#ifndef COMPAGNIE_HPP
#define COMPAGNIE_HPP
#include <iostream>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <algorithm>
#include "personnel.hpp"
#include "navire.hpp"
#include "billet.hpp"
#include "trajet.hpp"
#include "escales.hpp"
using namespace std;
class Passager;
class Personnel;
class Navire;
class Billet;
class Trajet;
class Escales;
class Compagnie
{
int id;
string nom;
list<Personnel *> toutPersonnels;
list<Passager *> passagers;
list<Navire *> toutNavires;
list<Billet *> toutBillets;
list<Trajet *> toutTrajets;
list<Escales *> toutEscales;
public:
Compagnie(int id, string nom);
~Compagnie();
int getId();
string getNom();
list<Personnel *> getToutPersonnels();
list<Passager *> getPassagers();
list<Navire *> getToutNavires();
list<Billet *> getToutBillets();
list<Trajet *> getToutTrajets();
list<Escales *> getToutEscales();
void AjoutPersonnel(Personnel *personnel);
void AjoutNavire(Navire *navire);
void AjoutBillets(Billet *billet);
void AjoutTrajet(Trajet *trajet);
void AjoutEscales(Escales *escale);
void triPersonnels();
void triPassagers();
void triNavires();
void triBillets();
void triTrajets();
void AffichePersonnels();
void AfficheNavires();
void AfficheBillets();
void AfficheTrajets();
void AfficheEscales();
void trajetsBillets(int idBillet);
void trajetsPersonnel(Personnel *personnel, int mois);
static bool comparateurPassagers(const Passager *pass1, const Passager *pass2);
static bool comparateurPersonnels(const Personnel *pers1, const Personnel *pers2);
static bool comparateurTrajets(const Trajet *traj1, const Trajet *traj2);
static bool comparateurBillets(const Billet *bill1, const Billet *bill2);
static bool comparateurNavires(const Navire *nav1, const Navire *nav2);
};
#endif