Bridges-C++  3.4.4
Bridges(C++ API)
Public Member Functions | List of all members
bridges::dataset::City Class Reference

#include <City.h>

Detailed Description

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

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)
 

Constructor & Destructor Documentation

◆ City() [1/2]

bridges::dataset::City::City ( )
default

Constructors

◆ 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

Member Function Documentation

◆ 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: