-
Notifications
You must be signed in to change notification settings - Fork 1
/
AddressPrivate.h
43 lines (37 loc) · 944 Bytes
/
AddressPrivate.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
#ifndef ADDRESSPRIVATE_H
#define ADDRESSPRIVATE_H
#include "Address.h"
#include "Street.h"
#include "Building.h"
#include <geos/geom/Point.h>
#include "QString"
#include "QSharedPointer"
#include "QSharedData"
class AddressPrivate : public QSharedData {
public:
AddressPrivate() :
zipCode(0),
allowStructural(true)
{
}
AddressPrivate(const AddressPrivate& other) :
QSharedData(other),
houseNumber(other.houseNumber),
street(other.street),
city(other.city),
zipCode(other.zipCode),
coordinate(other.coordinate),
addressType(other.addressType),
allowStructural(other.allowStructural)
{
}
QString houseNumber;
Street street;
QString city;
int zipCode;
QSharedPointer<geos::geom::Point> coordinate;
Address::AddressType addressType;
bool allowStructural;
~AddressPrivate() {}
};
#endif // ADDRESSPRIVATE_H