forked from CanadianBac0nz/2404a4
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UGradApp.cpp
39 lines (33 loc) · 1.42 KB
/
UGradApp.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
//////////////////////////////////////////////////////////////////////////
// UNDERGRAD APPLICATION CLASS
// Contains all of the attributes and functions of an undergraduate's application
#include "Types.h"
#include "UGradApp.h"
//////////////////////////////////////////////////////////////////////////
// Default constructor
UGradApp::UGradApp()
: Application()
{
undergrad = new Undergraduate();
takenCrsQueue = new TakenCourseQueue();
//cout << "CONSTRUCT UndergradApp" << endl;
}
//////////////////////////////////////////////////////////////////////////
// Destructor
UGradApp::~UGradApp() {
cout << "DESTRUCT UndergradApp #" << getAppNum() << endl;
}
//////////////////////////////////////////////////////////////////////////
// Get functions
Undergraduate* UGradApp::getUndergrad() const { return undergrad; }
TakenCourseQueue* UGradApp::getTakenCrsQueue() const { return takenCrsQueue; }
//////////////////////////////////////////////////////////////////////////
// Set functions
void UGradApp::setUndergrad(Undergraduate* under) { undergrad = under; }
void UGradApp::setTakenCrsQueue(TakenCourseQueue* tcq) { takenCrsQueue = tcq; }
//////////////////////////////////////////////////////////////////////////
// Prints out an application
void UGradApp::print() const {
cout << "APPLICATION #: " << getAppNum() << " for " << getCourse()->getName()
<< " " << getStatusString(getStatus()) << endl;
}