![]() |
Bridges-C++
3.2.0
Bridges(C++API)
|
#include <EarthquakeUSGS.h>
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.
Kalpathi Subramanian, 2/18/18
Public Member Functions | |
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 More... | |
string | getDateStr () const |
returns the real date in a string format More... | |
void | setTime (const string &tm) |
set epoch time More... | |
int | getYear () const |
get year of quake More... | |
int | getMonth () const |
get month of quake More... | |
int | getDay () const |
get day of quake More... | |
int | getHour () const |
get hour of quake More... | |
int | getMinutes () const |
get minutes of quake More... | |
int | getSeconds () const |
get seconds of quake More... | |
float | getLatit () const |
get latitude of quake More... | |
void | setLatit (float latit) |
set latitude More... | |
float | getLongit () const |
get longitude of quake location More... | |
void | setLongit (float longit) |
set longitude of quake location More... | |
string | getLocation () const |
get quake location. More... | |
void | setLocation (string location) |
set quake location (string) More... | |
string | getTitle () const |
get quake title More... | |
void | setTitle (const string &title) |
set quake title More... | |
string | getUrl () const |
get quake url More... | |
void | setUrl (const string &url) |
set quake url More... | |
double | getMagnitude () const |
get quake magnitude More... | |
void | setMagnitude (double magnitude) |
set quake magnitude More... | |
|
inline |
Default Constructor
|
inline |
Constructor
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 |
|
inline |
|
inline |
returns the real date in a string format
|
inline |
get day of quake
|
inline |
get hour of quake
|
inline |
get latitude of quake
|
inline |
get quake location.
This is astring describing location (typically a city or something of the sort)
|
inline |
get longitude of quake location
|
inline |
get quake magnitude
|
inline |
get minutes of quake
|
inline |
get month of quake
|
inline |
get seconds of quake
|
inline |
return the epoch time of the quake
|
inline |
get quake title
Typically a one line description of the quake
|
inline |
get quake url
|
inline |
get year of quake
|
inline |
set latitude
[in] | latit | latitude |
|
inline |
set quake location (string)
[in] | location | location |
|
inline |
set longitude of quake location
[in] | longit | longitude of the quake |
|
inline |
set quake magnitude
[in] | magnitude | magnitude of the quake on Richter scale |
|
inline |
set epoch time
tm | time as epoch |
|
inline |
set quake title
[in] | title | quake title |
|
inline |
set quake url
[in] | url | USGIS url of the quake |