-
Notifications
You must be signed in to change notification settings - Fork 0
/
address.h
executable file
·37 lines (28 loc) · 911 Bytes
/
address.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
#ifndef ADDRESS_H
#define ADDRESS_H
#include <QString>
#include <QDate>
class Address
{
public:
Address( const QString& street,
const QString& municipality,
const QString& province,
const QString& zip = "",
const QString& state = "IT" );
bool isEmpty() const;
const QString& getStreet() const { return street_; }
const QString& getMunicipality() const { return municipality_; }
const QString& getZip() const { return zip_; }
const QString& getProvince() const { return province_; }
const QString& getState() const { return state_; }
friend class Person;
private:
QString street_;
QString municipality_;
QString zip_;
QString province_;
QString state_;
Address() {}
};
#endif // ADDRESS_H