forked from CanadianBac0nz/2404a4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
WorkExp.cpp
48 lines (38 loc) · 1.35 KB
/
WorkExp.cpp
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
//////////////////////////////////////////////////////////////////////////
// WORKEXP CLASS
// Contains all of the attributes and functions of a work experience
#include "Types.h"
#include "WorkExp.h"
//////////////////////////////////////////////////////////////////////////
// Default constructor
WorkExp::WorkExp(string r, Manager* aManager) {
manager = aManager;
setResp(r);
//cout << "CONSTRUCT WorkExp for " << r << endl;
}
WorkExp::WorkExp(Manager* aManager) {
manager = aManager;
//cout << "CONSTRUCT WorkExp" << endl;
}
//////////////////////////////////////////////////////////////////////////
// Destructor
WorkExp::~WorkExp() {
cout << "DESTRUCT WorkExp" << endl;
}
//////////////////////////////////////////////////////////////////////////
// Get functions
string WorkExp::getResp() { return resp; }
string WorkExp::getDuration() { return duration; }
string WorkExp::getStart() { return start; }
string WorkExp::getEnd() { return end; }
//////////////////////////////////////////////////////////////////////////
// Set functions
void WorkExp::setResp(string r) { resp = r; }
void WorkExp::setDataMembers(string dur, string s, string e) {
duration = dur;
start = s;
end = e;
}
void WorkExp::print(){
cout<<"Resp: "<<resp<<", Dur: "<<duration<<", Start:"<<start<<", End: "<<end<<endl;
}