summaryrefslogtreecommitdiffstats
path: root/dev/a3-earthquake/earthquake_database.h
diff options
context:
space:
mode:
authorKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
committerKT <tran0563@umn.edu>2021-09-06 19:07:33 -0500
commitcccd3186305915d92b1751dc616979d64116a4aa (patch)
tree5dd4834daef547cd45fc0b643f44a10b581de0ad /dev/a3-earthquake/earthquake_database.h
parentAdded missing images for the A6 worksheet (diff)
downloadcsci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.gz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.bz2
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.lz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.xz
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.tar.zst
csci4611-cccd3186305915d92b1751dc616979d64116a4aa.zip
Upload a1
Diffstat (limited to '')
-rw-r--r--dev/a3-earthquake/earthquake_database.h50
1 files changed, 0 insertions, 50 deletions
diff --git a/dev/a3-earthquake/earthquake_database.h b/dev/a3-earthquake/earthquake_database.h
deleted file mode 100644
index 026e454..0000000
--- a/dev/a3-earthquake/earthquake_database.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/** CSci-4611 Assignment 3: Earthquake
- */
-
-#ifndef EARTHQUAKEDATABASE_H_
-#define EARTHQUAKEDATABASE_H_
-
-#include <string>
-#include <vector>
-
-#include "earthquake.h"
-#include "date.h"
-
-/** A database of earthquakes created by loading from a data file.
- */
-class EarthquakeDatabase {
-public:
- /// Creates an empty EarthquakeDatabase
- EarthquakeDatabase() {}
-
- /// Creates an EarthquakeDatabase from file
- EarthquakeDatabase(std::string filename);
-
- /// Returns the index of the most recent earthquake as of given date
- int FindMostRecentQuake(Date d);
-
- /// Returns Earthquake given index in file
- Earthquake earthquake(int index);
-
- /// Returns minimum index. Note that this is not zero!
- int min_index();
-
- /// Returns maximum valid index. Running
- /// getByIndex(getMaxIndex()) WILL return the last earthquake in the file
- int max_index();
-
- /// Returns the magnitude of the earthquake with the largest magnitude
- /// in the database
- float max_magnitude();
-
- /// Returns the magnitude of the earthquake with the smallest magnitude
- /// in the database
- float min_magnitude();
-
-protected:
- std::vector<Earthquake> earthquakes;
- float min_mag_;
- float max_mag_;
-};
-
-#endif