Bridges-C++  3.4.1
Bridges(C++API)
Amenity.h
Go to the documentation of this file.
1 
2 #ifndef AMENITIES
3 
4 #define AMENITIES
5 
20 #include <string>
21 
22 class Amenity {
23 
24  private:
25  long id_val;
26  double lat;
27  double lon;
28  string name;
29  vector<string> other;
30 
31  public:
35  Amenity() {
36  id_val = 0;
37  lat = 0;
38  lon = 0;
39  name = "";
40  other.clear();
41  }
42 
51  Amenity (double id_val, double lat, double lon, string name,
52  vector<string> other) {
53  setId(id_val);
54  setLat(lat);
55  setLon(lon);
56  setName(name);
57  setOther(other);
58  }
59 
60 
65  long getId() {
66  return id_val;
67  }
68 
73  void setId(long id) {
74  id_val = id;
75  }
76 
81  double getLat() {
82  return lat;
83  }
84 
89  void setLat(double latitude) {
90  lat = latitude;
91  }
92 
97  double getLon() {
98  return lon;
99  }
100 
105  void setLon(double longitude) {
106  lon = longitude;
107  }
108 
113  string getName() {
114  return name;
115  }
116 
121  void setName(string n) {
122  name = n;
123  }
124 
129  vector<string> getOther() {
130  return other;
131  }
132 
137  void setOther(vector<string> oth) {
138  other = oth;
139  }
140 };
141 
142 #endif
long getId()
Definition: Amenity.h:65
Class that hold Open Street Map Amenity data.
Definition: Amenity.h:22
void setId(long id)
Definition: Amenity.h:73
string getName()
Definition: Amenity.h:113
void setLon(double longitude)
Definition: Amenity.h:105
double getLat()
Definition: Amenity.h:81
void setName(string n)
Definition: Amenity.h:121
Amenity()
Definition: Amenity.h:35
void setLat(double latitude)
Definition: Amenity.h:89
vector< string > getOther()
Definition: Amenity.h:129
double getLon()
Definition: Amenity.h:97
Amenity(double id_val, double lat, double lon, string name, vector< string > other)
Definition: Amenity.h:51
void setOther(vector< string > oth)
Definition: Amenity.h:137