hydrobricks
Loading...
Searching...
No Matches
ActionLandCoverChange.h
1#ifndef HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
2#define HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
3
4#include "Action.h"
5#include "Includes.h"
6
8 public:
10
11 ~ActionLandCoverChange() override = default;
12
21 void AddChange(double date, int hydroUnitId, const string& landCoverName, double area);
22
29 bool Apply(double date) override;
30
36 int GetChangesNb() const {
37 return int(m_sporadicDates.size());
38 }
39
45 int GetLandCoversNb() const {
46 return int(m_landCoverNames.size());
47 }
48
49 protected:
50 vecInt m_hydroUnitIds;
51 vecInt m_landCoverIds;
52 vecStr m_landCoverNames;
53 vecDouble m_areas;
54
55 private:
56 int GetLandCoverId(const string& landCoverName);
57};
58
59#endif // HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
Definition ActionLandCoverChange.h:7
int GetChangesNb() const
Definition ActionLandCoverChange.h:36
int GetLandCoversNb() const
Definition ActionLandCoverChange.h:45
bool Apply(double date) override
Definition ActionLandCoverChange.cpp:19
void AddChange(double date, int hydroUnitId, const string &landCoverName, double area)
Definition ActionLandCoverChange.cpp:8
Definition Action.h:7