-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathStopTime.cpp
More file actions
50 lines (41 loc) · 868 Bytes
/
StopTime.cpp
File metadata and controls
50 lines (41 loc) · 868 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
/*********************************************************************
** Author: Melody Reebs
** Date: 06/28/2018
** Title: BART times
** Description: StopTime class implementation file
*********************************************************************/
#include <string>
#include <vector>
#include "StopTime.hpp"
using std::string;
using std::vector;
// Constructor
StopTime::StopTime(string s, string t, string d) {
setStation(s);
setTime(t);
setDest(d);
}
// Get station
string StopTime::getStation() {
return station;
}
// Get time
string StopTime::getTime() {
return time;
}
// Get destination
string StopTime::getDest() {
return dest;
}
// Set station
void StopTime::setStation(string s) {
station = s;
}
// Set time
void StopTime::setTime(string t) {
time = t;
}
// Set destination
void StopTime::setDest(string d) {
dest = d;
}