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
26 void Reset() override;
27
34 bool Apply(double date) override;
35
41 int GetChangesNb() const {
42 return static_cast<int>(_sporadicDates.size());
43 }
44
50 int GetLandCoversNb() const {
51 return static_cast<int>(_landCoverNames.size());
52 }
53
54 protected:
55 vecInt _hydroUnitIds;
56 vecInt _landCoverIds;
57 vecStr _landCoverNames;
58 vecDouble _areas;
59
60 private:
61 int GetLandCoverId(const string& landCoverName);
62};
63
64#endif // HYDROBRICKS_ACTION_LAND_COVER_CHANGE_H
Definition ActionLandCoverChange.h:7
int GetChangesNb() const
Definition ActionLandCoverChange.h:41
int GetLandCoversNb() const
Definition ActionLandCoverChange.h:50
bool Apply(double date) override
Definition ActionLandCoverChange.cpp:32
void Reset() override
Definition ActionLandCoverChange.cpp:19
void AddChange(double date, int hydroUnitId, const string &landCoverName, double area)
Definition ActionLandCoverChange.cpp:8
Definition Action.h:7