-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGuest.cpp
More file actions
66 lines (50 loc) · 1.04 KB
/
Copy pathGuest.cpp
File metadata and controls
66 lines (50 loc) · 1.04 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
/*
* Guest.cpp
* Implementation file for Guest entity class
*
* Coder: Christiane Lau
* Completed 11/28/2025
*
* This class holds guest information, including first name, last name, guest ID, and username.
* It contains functions to set, retrieve, and edit these details.
*/
#include "Guest.h"
#include <string>
// Guest info setter/getter functions
void Guest::setFName(std::string f) {
fName = f;
}
std::string Guest::getFName() {
return fName;
}
void Guest::setLName(std::string l) {
lName = l;
}
std::string Guest::getLName() {
return lName;
}
void Guest::setID(int i) {
ID = i;
}
int Guest::getID() {
return ID;
}
void Guest::setUsername(std::string u) {
username = u;
}
std::string Guest::getUsername() {
return username;
}
// Edit guest info functions
void Guest::editFName(std::string f) {
setFName(f);
}
void Guest::editLName(std::string l) {
setLName(l);
}
void Guest::editID(int i) {
setID(i);
}
void Guest::editUsername(std::string u) {
setUsername(u);
}