-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPersonnelSecurite.cpp
More file actions
56 lines (44 loc) · 1.64 KB
/
Copy pathPersonnelSecurite.cpp
File metadata and controls
56 lines (44 loc) · 1.64 KB
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
//
// Created by new on 10/3/2025.
//
#include "PersonnelSecurite.h"
int PersonnelSecurite::compteurAgent = 23478;
PersonnelSecurite::PersonnelSecurite(const std::string& nom, const std::string& prenom,
const std::string& fonction)
: Personne(nom, prenom), fonction(fonction),
numeroAgent(compteurAgent++) {
statut = "securite";
initialiserGroupesParDefaut();
}
PersonnelSecurite::PersonnelSecurite(const std::string& nom, const std::string& prenom,
const std::string& fonction,
const std::string& email, const std::string& departement)
: Personne(nom, prenom, email, departement), fonction(fonction),
numeroAgent(compteurAgent++) {
statut = "securite";
initialiserGroupesParDefaut();
}
PersonnelSecurite::~PersonnelSecurite() {
std::cout << "Destruction du personnel de sécurité " << getNomComplet() << std::endl;
}
std::string PersonnelSecurite::getStatut() const {
return "securite";
}
void PersonnelSecurite::initialiserGroupesParDefaut() {
this->ajouterGroupe("Securite");
}
void PersonnelSecurite::afficherInfosSpecifiques() const {
//std::cout << "--- Informations Personnel Sécurité ---" << std::endl;
std::cout << "Fonction: " << fonction << std::endl;
std::cout << "Numéro agent: " << numeroAgent << std::endl;
}
void PersonnelSecurite::afficherInfos() const {
Personne::afficherInfos();
this->afficherInfosSpecifiques();
}
std::string PersonnelSecurite::getFonction() const {
return fonction;
}
int PersonnelSecurite::getNumeroAgent() const {
return numeroAgent;
}