-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathStreet.cpp
48 lines (37 loc) · 850 Bytes
/
Street.cpp
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
#include "Street.h"
#include "StreetPrivate.h"
Street::Street() :
d(new StreetPrivate)
{
}
Street::Street(const Street& other) :
d(other.d)
{
}
QString Street::name() const {
return d->name;
}
QList<uint> Street::nodeIndices() const {
return d->nodeIndices;
}
QSharedPointer<geos::geom::LineString> Street::path() const {
return d->path;
}
void Street::setName(QString name) {
d->name = name;
}
void Street::setNodeIndices(QList<uint> nodeIndices) {
d->nodeIndices = nodeIndices;
}
void Street::setPath(QSharedPointer<geos::geom::LineString> path) {
d->path = path;
}
Street& Street::operator=(const Street& other) {
d = other.d;
return *this;
}
Street::~Street() {
}
bool operator==(const Street& street1, const Street& street2) {
return street1.name().toUpper() == street2.name().toUpper();
}