-
Notifications
You must be signed in to change notification settings - Fork 0
/
Airport.h
49 lines (44 loc) · 1.15 KB
/
Airport.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
#pragma once
#include <string>
using namespace std;
/*
struct Route
{
unsigned int startID;
unsigned int endID;
long double dist;
bool isLabeled;
};
*/
class Airport
{
private:
string name_;
string country_;
string city_;
string iata_;
string icao_;
unsigned int id_;
long double latitude_;
long double longitude_;
public:
Airport();
Airport(string name, string country, string city, unsigned int id, long double latitude, long double longitude);
~Airport();
void setName(string name);
void setCountry(string country);
void setCity(string city);
void setIATA(string iata);
void setICAO(string icao);
void setId(unsigned int id);
void setLatitude(long double latitude);
void setLongitude(long double longitude);
string getName() const;
string getCountry() const;
string getCity() const;
string getIATA() const;
string getICAO() const;
unsigned int getID() const;
long double getLatitude() const;
long double getLongitude() const;
};