-
Notifications
You must be signed in to change notification settings - Fork 0
/
Event.cc
67 lines (48 loc) · 1.1 KB
/
Event.cc
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
#include <iostream>
#include <iomanip>
#include <string>
using namespace std;
#include "Event.h"
Event::Event(string event,int p) : eventName(event) , priority(p){
}
Event::~Event(){
}
/* Function:
Purpose : To print event
Parameter: None
*/
void Event::print(){
cout << eventName << "\n" << "Number of priorites " << getPriority() << "\n" ;
d.printLong();
}
/* Function:
Purpose : To get Event Object
Parameter: None
out : date reference object returned
*/
// Returns object Date
Date& Event::getEventDate(){
return d;
}
/* Function:
Purpose : To get priority
Parameter: None
out : priority returned
*/
int Event::getPriority(){
return priority;
}
/* Function:
Purpose : To set event date
Parameter:
inout: takes in day
inout: takes in month
inout: takes in year
inout: takes in hour
inout: takes in min
inout: takes second
returns nothing
*/
void Event::setDate(int day,int month, int year,int hour,int min){
d.set(day,month,year,hour,min);
}