-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathccevent.cpp
More file actions
61 lines (47 loc) · 931 Bytes
/
ccevent.cpp
File metadata and controls
61 lines (47 loc) · 931 Bytes
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
#include <iostream>
#include "ccevent.h"
using namespace std;
CCEvent::CCEvent() {
id = 0;
title = "notitle";
location = "nolocation";
dateTime = "nodatetime";
description = "nodescription";
}
CCEvent::CCEvent(int _id, string _title, string _dateTime, string _location, string _description){
id = _id;
title = _title;
location = _location;
dateTime = _dateTime;
description = _description;
}
void CCEvent::setId(int i){
id = i;
}
void CCEvent::setTitle(string t){
title = t;
}
void CCEvent::setLocation(string loc){
location = loc;
}
void CCEvent::setDateTime(string dt){
dateTime = dt;
}
void CCEvent::setDescription(string d){
description = d;
}
int CCEvent::getId(){
return id;
}
string CCEvent::getTitle(){
return title;
}
string CCEvent::getLocation(){
return location;
}
string CCEvent::getDateTime(){
return dateTime;
}
string CCEvent::getDescription(){
return description;
}