-
Notifications
You must be signed in to change notification settings - Fork 1
/
Street.h
44 lines (32 loc) · 889 Bytes
/
Street.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
/*
* File: Street.h
* Author: saikrishna
*
* Created on January 1, 2014, 12:14 PM
*/
#ifndef STREET_H
#define STREET_H
#include <QString>
#include <QList>
#include <QSharedPointer>
#include <QExplicitlySharedDataPointer>
#include <geos/geom/LineString.h>
class StreetPrivate;
class Street {
public:
Street();
Street(const Street& other);
QString name() const;
QList<uint> nodeIndices() const;
QSharedPointer<geos::geom::LineString> path() const;
void setName(QString name);
void setNodeIndices(QList<uint> nodeIndices);
void setPath(QSharedPointer<geos::geom::LineString> path);
Street& operator=(const Street& other);
virtual ~Street();
private:
QExplicitlySharedDataPointer<StreetPrivate> d;
};
bool operator==(const Street& street1, const Street& street2);
Q_DECLARE_TYPEINFO(Street, Q_MOVABLE_TYPE);
#endif /* STREET_H */