Class that hold earthquake data, for use with USGIS retrieved quake data.
More...
#include <EarthquakeUSGS.h>
|
| | EarthquakeUSGS () |
| |
| | EarthquakeUSGS (double magnitude, double longit, double latit, const string &location, const string &title, const string &url, const string &time) |
| |
| | EarthquakeUSGS (const EarthquakeUSGS *eq) |
| |
| string | getTime () const |
| | return the epoch time of the quake
|
| |
| string | getDateStr () const |
| | returns the real date in a string format
|
| |
| void | setTime (const string &tm) |
| | set epoch time
|
| |
| int | getYear () const |
| | get year of quake
|
| |
| int | getMonth () const |
| | get month of quake
|
| |
| int | getDay () const |
| | get day of quake
|
| |
| int | getHour () const |
| | get hour of quake
|
| |
| int | getMinutes () const |
| | get minutes of quake
|
| |
| int | getSeconds () const |
| | get seconds of quake
|
| |
| float | getLatit () const |
| | get latitude of quake
|
| |
| void | setLatit (float latit) |
| | set latitude
|
| |
| float | getLongit () const |
| | get longitude of quake location
|
| |
| void | setLongit (float longit) |
| | set longitude of quake location
|
| |
| string | getLocation () const |
| | get quake location.
|
| |
| void | setLocation (string location) |
| | set quake location (string)
|
| |
| string | getTitle () const |
| | get quake title
|
| |
| void | setTitle (const string &title) |
| | set quake title
|
| |
| string | getUrl () const |
| | get quake url
|
| |
| void | setUrl (const string &url) |
| | set quake url
|
| |
| double | getMagnitude () const |
| | get quake magnitude
|
| |
| void | setMagnitude (double magnitude) |
| | set quake magnitude
|
| |
Class that hold earthquake data, for use with USGIS retrieved quake data.
Class that holds earthquake USGIS data. BRIDGES uses scripts to continually monitor USGIS site (tweets) and retrieve the latest quake data for use in student projects.
One would normally not create an object of that type but rather obtain one by calling bridges::DataSource::getEarthquakeUSGSData()
- See also
- Refer to the tutorial on how to use this dataset: https://bridgesuncc.github.io/tutorials/Data_EQ_USGS.html
- Author
- Kalpathi Subramanian, 2/18/18
◆ EarthquakeUSGS() [1/3]
| bridges::dataset::EarthquakeUSGS::EarthquakeUSGS |
( |
| ) |
|
|
inline |
◆ EarthquakeUSGS() [2/3]
| bridges::dataset::EarthquakeUSGS::EarthquakeUSGS |
( |
double |
magnitude, |
|
|
double |
longit, |
|
|
double |
latit, |
|
|
const string & |
location, |
|
|
const string & |
title, |
|
|
const string & |
url, |
|
|
const string & |
time |
|
) |
| |
|
inline |
Constructor
- Parameters
-
| magnitude | quake magnitude |
| longit | longitude of quake |
| latit | latitude of quake |
| location | location of quake |
| title | title of quake (has some attributes of quake) |
| url | url of quake |
| time | occurrence time |
◆ EarthquakeUSGS() [3/3]
| bridges::dataset::EarthquakeUSGS::EarthquakeUSGS |
( |
const EarthquakeUSGS * |
eq | ) |
|
|
inline |
◆ getDateStr()
| string bridges::dataset::EarthquakeUSGS::getDateStr |
( |
| ) |
const |
|
inline |
returns the real date in a string format
- Returns
- the real date in format "Month Day Year Hour:Minute:Seconds"
◆ getDay()
| int bridges::dataset::EarthquakeUSGS::getDay |
( |
| ) |
const |
|
inline |
get day of quake
- Returns
- day of the quake
◆ getHour()
| int bridges::dataset::EarthquakeUSGS::getHour |
( |
| ) |
const |
|
inline |
get hour of quake
- Returns
- hour of the quake
◆ getLatit()
| float bridges::dataset::EarthquakeUSGS::getLatit |
( |
| ) |
const |
|
inline |
get latitude of quake
- Returns
- latitude of the quake
◆ getLocation()
| string bridges::dataset::EarthquakeUSGS::getLocation |
( |
| ) |
const |
|
inline |
get quake location.
This is astring describing location (typically a city or something of the sort)
- Returns
- location as a string
◆ getLongit()
| float bridges::dataset::EarthquakeUSGS::getLongit |
( |
| ) |
const |
|
inline |
get longitude of quake location
- Returns
- longitude of the quake
◆ getMagnitude()
| double bridges::dataset::EarthquakeUSGS::getMagnitude |
( |
| ) |
const |
|
inline |
get quake magnitude
- Returns
- magnitude of the scale on Richter scale
◆ getMinutes()
| int bridges::dataset::EarthquakeUSGS::getMinutes |
( |
| ) |
const |
|
inline |
get minutes of quake
- Returns
- minutes of the quake
◆ getMonth()
| int bridges::dataset::EarthquakeUSGS::getMonth |
( |
| ) |
const |
|
inline |
get month of quake
- Returns
- month of the quake
◆ getSeconds()
| int bridges::dataset::EarthquakeUSGS::getSeconds |
( |
| ) |
const |
|
inline |
get seconds of quake
- Returns
- get seconds of the quake
◆ getTime()
| string bridges::dataset::EarthquakeUSGS::getTime |
( |
| ) |
const |
|
inline |
return the epoch time of the quake
- Returns
- time
◆ getTitle()
| string bridges::dataset::EarthquakeUSGS::getTitle |
( |
| ) |
const |
|
inline |
get quake title
Typically a one line description of the quake
- Returns
- title
◆ getUrl()
| string bridges::dataset::EarthquakeUSGS::getUrl |
( |
| ) |
const |
|
inline |
get quake url
- Returns
- USGIS url about the quake
◆ getYear()
| int bridges::dataset::EarthquakeUSGS::getYear |
( |
| ) |
const |
|
inline |
get year of quake
- Returns
- year of the quake
◆ setLatit()
| void bridges::dataset::EarthquakeUSGS::setLatit |
( |
float |
latit | ) |
|
|
inline |
◆ setLocation()
| void bridges::dataset::EarthquakeUSGS::setLocation |
( |
string |
location | ) |
|
|
inline |
set quake location (string)
- Parameters
-
◆ setLongit()
| void bridges::dataset::EarthquakeUSGS::setLongit |
( |
float |
longit | ) |
|
|
inline |
set longitude of quake location
- Parameters
-
| [in] | longit | longitude of the quake |
◆ setMagnitude()
| void bridges::dataset::EarthquakeUSGS::setMagnitude |
( |
double |
magnitude | ) |
|
|
inline |
set quake magnitude
- Parameters
-
| [in] | magnitude | magnitude of the quake on Richter scale |
◆ setTime()
| void bridges::dataset::EarthquakeUSGS::setTime |
( |
const string & |
tm | ) |
|
|
inline |
set epoch time
- Parameters
-
◆ setTitle()
| void bridges::dataset::EarthquakeUSGS::setTitle |
( |
const string & |
title | ) |
|
|
inline |
set quake title
- Parameters
-
◆ setUrl()
| void bridges::dataset::EarthquakeUSGS::setUrl |
( |
const string & |
url | ) |
|
|
inline |
set quake url
- Parameters
-
| [in] | url | USGIS url of the quake |
The documentation for this class was generated from the following file: