-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCounty.h
39 lines (30 loc) · 1.05 KB
/
County.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//
// Created by Jason Glover on 11/28/20.
//
#include <set>
#include <map>
#include <string>
#include "Date.h"
using namespace std;
#ifndef DSPROJ3_COUNTY_H
#define DSPROJ3_COUNTY_H
class County {
public:
//pair<string, string> name;
string county;
string state;
map<Date, pair<int, int> > entriesMap;
set<Date> entriesSet;
/*=========Constructors==========*/
County(string _county, string _state);
//^^A constructor like this would mean having to parse the entries in the main function, probably not a big deal tho right??
void insertEntry(Date _date, int cases, int deaths);
//^^This function builds the "entries" map for the county instance.
/*=========Helper Functions=======*/
bool operator==(const County& c) const;
bool operator<(const County& c) const;
//== operator added for unordered set evaluations, info on this found here: https://www.geeksforgeeks.org/how-to-create-an-unordered_set-of-user-defined-class-or-struct-in-c/
//Accessed on Dec 3, 2020
private:
};
#endif //DSPROJ3_COUNTY_H