-
Notifications
You must be signed in to change notification settings - Fork 1
/
BuildingPrivate.h
52 lines (46 loc) · 1.13 KB
/
BuildingPrivate.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
#ifndef BUILDINGPRIVATE_H
#define BUILDINGPRIVATE_H
#include "Building.h"
#include <QSharedData>
class BuildingPrivate : public QSharedData {
public:
BuildingPrivate() :
id(0),
version(-1),
year(0),
uid(0),
changesetID(0),
mergeLevel(Building::Unmerged)
{
}
BuildingPrivate(const BuildingPrivate& other) :
QSharedData(other),
id(other.id),
version(other.version),
year(other.year),
featureID(other.featureID),
building(other.building),
nodeIndices(other.nodeIndices),
tags(other.tags),
user(other.user),
uid(other.uid),
changesetID(other.changesetID),
timestamp(other.timestamp),
mergeLevel(other.mergeLevel)
{
}
uint id;
int version;
int year;
QString featureID;
QSharedPointer<geos::geom::Polygon> building;
QList<uint> nodeIndices;
QMap<QString, QString> tags;
QString user;
uint uid;
uint changesetID;
QDateTime timestamp;
Building::AddressMergeLevel mergeLevel;
~BuildingPrivate() {}
};
#endif // BUILDINGPRIVATE_H