-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfootways.h
54 lines (41 loc) · 868 Bytes
/
footways.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
/*footways.h*/
//
// A collection of footways / paths in the Open Street Map.
//
// Mark Fortes
// Northwestern University
// CS 211: Winter 2023
//
#pragma once
#include <vector>
#include "building.h"
#include "footway.h"
#include "tinyxml2.h"
using namespace std;
using namespace tinyxml2;
//
// Keeps track of all the footways / paths in the map.
//
class Footways
{
public:
vector<Footway> MapFootways;
//
// readMapFootways
//
// Given an XML document, reads through the document and
// stores all the footways into the given vector.
//
void readMapFootways(XMLDocument& xmldoc);
//
// intersectWithBuilding
//
// Outputs all the footways that intersect --- i.e. share
// a common node --- with Building B.
//
void intersectWithBuilding(Building& B);
//
// accessors / getters
//
int getNumMapFootways();
};