-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReservoir.h
43 lines (34 loc) · 919 Bytes
/
Reservoir.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
40
41
42
43
#ifndef RESERVOIR_H
#define RESERVOIR_H
#include <string>
#include <vector>
using namespace std;
class Reservoir {
public:
// Constructors
Reservoir();
Reservoir(const std::string& name, const std::string& municipality, int id, const std::string& code, int maxDelivery);
// Destructor
~Reservoir();
//Reading CSV
vector<Reservoir> readFromCSV(const string& filename);
// Getters
string getName() const;
string getMunicipality() const;
int getId() const;
string getCode() const;
int getMaxDelivery() const;
// Setters
void setName(const std::string& name);
void setMunicipality(const std::string& municipality);
void setId(int id);
void setCode(const std::string& code);
void setMaxDelivery(int maxDelivery);
private:
string name;
string municipality;
int id;
string code;
int maxDelivery;
};
#endif // RESERVOIR_H