Groom
1.1
BTS SNIR LaSalle Avignon 2021
Occupant.cpp
Aller à la documentation de ce fichier.
1
#include "
Occupant.h
"
2
#include <QDebug>
3
18
Occupant::Occupant
()
19
{
20
qDebug() << Q_FUNC_INFO;
21
}
22
28
Occupant::Occupant
(QString nom, QString prenom, QString fonction) : nom(nom), prenom(prenom), fonction(fonction)
29
{
30
qDebug() << Q_FUNC_INFO;
31
}
32
38
Occupant::~Occupant
()
39
{
40
//qDebug() << Q_FUNC_INFO;
41
}
42
48
bool
Occupant::operator==
(
const
Occupant
&occupant)
const
49
{
50
if
(this->
nom
!= occupant.
nom
)
51
return
false
;
52
if
(this->
prenom
!= occupant.
prenom
)
53
return
false
;
54
if
(this->
fonction
!= occupant.
fonction
)
55
return
false
;
56
else
57
return
true
;
58
}
59
65
bool
Occupant::operator!=
(
const
Occupant
&occupant)
const
66
{
67
return
!(*
this
== occupant);
68
}
Occupant::operator!=
bool operator!=(const Occupant &occupant) const
Surcharge de l'opérateur != afin de comparer deux occupants.
Definition:
Occupant.cpp:65
Occupant::~Occupant
~Occupant()
Destructeur.
Definition:
Occupant.cpp:38
Occupant::Occupant
Occupant()
Constructeur par défaut.
Definition:
Occupant.cpp:18
Occupant::fonction
QString fonction
Membre définissant la fonction de l'occupant.
Definition:
Occupant.h:22
Occupant::prenom
QString prenom
Membre définissant le prénom de l'occupant.
Definition:
Occupant.h:21
Occupant::nom
QString nom
Membre définissant le nom de l'occupant.
Definition:
Occupant.h:20
Occupant
Structure qui définit les informations d'un occupant du bureau.
Definition:
Occupant.h:18
Occupant.h
Déclaration de la structure Occupant.
Occupant::operator==
bool operator==(const Occupant &occupant) const
Surcharge de l'opérateur == afin de comparer deux occupants.
Definition:
Occupant.cpp:48
Occupant.cpp
Campus La Salle Avignon
- 9 Rue Notre Dame des 7 douleurs - BP 50165 - 84008 Avignon - Généré le Mardi 15 Juin 2021 11:27:21 pour Groom par
doxygen
1.8.17