-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathManager.cpp
More file actions
46 lines (38 loc) · 1.16 KB
/
Manager.cpp
File metadata and controls
46 lines (38 loc) · 1.16 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
#include <iostream>
#include <utility>
#include "Manager.h"
using namespace std;
Manager::Manager()= default;
Manager::Manager(string EmpFirstName, string EmpLastName, int EmpRating, string EmpNotes, int EmpSalary, string MgrTitle, string Department){
firstName = std::move(EmpFirstName);
lastName = std::move(EmpLastName);
rating = EmpRating;
notes = std::move(EmpNotes);
salary = EmpSalary;
title = std::move(MgrTitle);
department = std::move(Department);
}
//Setter and getter for title.
void Manager::setMgrTitle(string MgrTitle) {
title = std::move(MgrTitle);
}
string Manager::getMgrTitle() {
return title;
}
//Setter and getter for department.
void Manager::setDepartment(string Department) {
department = std::move(Department);
}
string Manager::getDepartment() {
return department;
}
//Functions
//Prints Manager information.
void Manager::printValues() {
cout << "Name: " << lastName << ", " << firstName << endl
<< "Salary: $" << salary << endl
<< "Rating: " << rating << endl
<< "Notes: "<< notes << endl
<< "Title: " << title << endl
<< "Department: " << department << endl;
}