Bridges-C++
3.4.4
Bridges(C++ API)
|
#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.
Public Member Functions | |
City ()=default | |
City (string cty, string st, string cntry, string tm_zone, int elev, int pop, float lat, float lon) | |
string | getCity () const |
void | setCity (string c) |
string | getState () const |
void | setState (string st) |
string | getCountry () const |
void | setCountry (string cntry) |
string | getTimeZone () const |
void | setTimeZone (string tz) |
float | getLatitude () const |
void | setLatitude (float lat) |
float | getLongitude () const |
void | setLongitude (float lon) |
float | getPopulation () const |
void | setPopulation (int pop) |
int | getElevation () const |
void | setElevation (int elev) |
|
default |
Constructors
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |