-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbusstop.h
67 lines (52 loc) · 1.1 KB
/
busstop.h
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
/*busstop.h*/
//
// A bus stop on the NU campus map.
//
#pragma once
#include <string>
#include <iostream>
#include <utility>
using namespace std;
//
// BusStop
//
// Defines a bus stop on campus.
// Consists of a stop ID, the bus route, the stop name, the direction of travel,
// the location of the stop, and the position in latitude and longitude.
class BusStop
{
public:
int StopID;
int BusRoute;
string StopName;
string Direction;
string LocationDesc;
pair<double,double> Position;
//
// default constructor:
//
BusStop();
//
// constructor:
//
BusStop(int stopid, int busroute, string stopname, string direction, string locationdesc, pair<double,double> position);
//
// print
//
void print();
//
// accessors
//
// stop id
int getStopID();
// bus route
int getBusRoute();
// stop name
string getStopName();
// direction
string getDirection();
// location
string getLocationDesc();
// position (lat, lon)
pair<double, double> getPosition();
};