-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStaff.cpp
More file actions
76 lines (59 loc) · 1.19 KB
/
Copy pathStaff.cpp
File metadata and controls
76 lines (59 loc) · 1.19 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/*
* Staff.cpp
* Implementation file for Staff entity class
*
* Coder: Christiane Lau
* Completed 11/28/2025
*
* This class holds staff information, including first name, last name, staff ID, and username.
* It contains functions to set, retrieve, and edit these details.
*/
#include "Staff.h"
#include <string>
// Staff info setter/getter functions
void Staff::setFName(std::string f) {
fName = f;
}
std::string Staff::getFName() {
return fName;
}
void Staff::setLName(std::string l) {
lName = l;
}
std::string Staff::getLName() {
return lName;
}
void Staff::setID(int i) {
ID = i;
}
int Staff::getID() {
return ID;
}
void Staff::setUsername(std::string u) {
username = u;
}
std::string Staff::getUsername() {
return username;
}
void Staff::setRole(std::string r) {
role = r;
}
std::string Staff::getRole() {
return role;
}
// Edit staff info functions
void Staff::editFName(std::string f) {
setFName(f);
}
void Staff::editLName(std::string l) {
setLName(l);
}
void Staff::editID(int i) {
setID(i);
}
void Staff::editUsername(std::string u) {
setUsername(u);
}
void Staff::editRole(std::string r) {
setRole(r);
}