Class that holds data of a city.
More...
#include <City.h>
Class that holds data of a city.
A user would not normally create an City object but rather obtain one from calling bridges::DataSource::getUSCities(), bridges::DataSource::getWorldCities() (to come)
A tutorial on how to use the City objects is available at: https://bridgesuncc.github.io/tutorials/Data_USCities.html
Each city object contains the city name, state, country, time zone, elevation, population and lat/long location information.
- Author
- Kalpathi Subramanian
- Date
- 6/7/22
◆ City() [1/2]
bridges::dataset::City::City |
( |
| ) |
|
|
default |
◆ City() [2/2]
bridges::dataset::City::City |
( |
string |
cty, |
|
|
string |
st, |
|
|
string |
cntry, |
|
|
string |
tm_zone, |
|
|
int |
elev, |
|
|
int |
pop, |
|
|
float |
lat, |
|
|
float |
lon |
|
) |
| |
|
inline |
◆ getCity()
string bridges::dataset::City::getCity |
( |
| ) |
const |
|
inline |
◆ getCountry()
string bridges::dataset::City::getCountry |
( |
| ) |
const |
|
inline |
◆ getElevation()
int bridges::dataset::City::getElevation |
( |
| ) |
const |
|
inline |
◆ getLatitude()
float bridges::dataset::City::getLatitude |
( |
| ) |
const |
|
inline |
◆ getLongitude()
float bridges::dataset::City::getLongitude |
( |
| ) |
const |
|
inline |
◆ getPopulation()
float bridges::dataset::City::getPopulation |
( |
| ) |
const |
|
inline |
◆ getState()
string bridges::dataset::City::getState |
( |
| ) |
const |
|
inline |
◆ getTimeZone()
string bridges::dataset::City::getTimeZone |
( |
| ) |
const |
|
inline |
◆ setCity()
void bridges::dataset::City::setCity |
( |
string |
c | ) |
|
|
inline |
◆ setCountry()
void bridges::dataset::City::setCountry |
( |
string |
cntry | ) |
|
|
inline |
◆ setElevation()
void bridges::dataset::City::setElevation |
( |
int |
elev | ) |
|
|
inline |
◆ setLatitude()
void bridges::dataset::City::setLatitude |
( |
float |
lat | ) |
|
|
inline |
◆ setLongitude()
void bridges::dataset::City::setLongitude |
( |
float |
lon | ) |
|
|
inline |
◆ setPopulation()
void bridges::dataset::City::setPopulation |
( |
int |
pop | ) |
|
|
inline |
◆ setState()
void bridges::dataset::City::setState |
( |
string |
st | ) |
|
|
inline |
◆ setTimeZone()
void bridges::dataset::City::setTimeZone |
( |
string |
tz | ) |
|
|
inline |
The documentation for this class was generated from the following file:
- bridges-cxx/src/data_src/City.h