3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Measure.cpp@65:3723d2729b68, 2017-04-09 (annotated)
- Committer:
- Netaphous
- Date:
- Sun Apr 09 23:41:45 2017 +0000
- Branch:
- feature/listOptimisation
- Revision:
- 65:3723d2729b68
- Parent:
- 46:0de1f3c7d118
- Child:
- 68:d3765f93c16a
Implemented CircularArray in the place of the linked list in the main code;
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
FairyMental | 40:ba083993b481 | 1 | #include "Measure.h" |
Netaphous | 65:3723d2729b68 | 2 | |
FairyMental | 40:ba083993b481 | 3 | //Constructor |
FairyMental | 40:ba083993b481 | 4 | Measure::Measure(float f, float h, float p) { |
FairyMental | 40:ba083993b481 | 5 | temperature = f; |
FairyMental | 40:ba083993b481 | 6 | humidity = h; |
FairyMental | 40:ba083993b481 | 7 | pressure = p; |
FairyMental | 40:ba083993b481 | 8 | } |
FairyMental | 40:ba083993b481 | 9 | Measure::Measure() |
FairyMental | 40:ba083993b481 | 10 | { |
FairyMental | 40:ba083993b481 | 11 | temperature = 0; |
FairyMental | 40:ba083993b481 | 12 | humidity = 0; |
FairyMental | 40:ba083993b481 | 13 | pressure = 0; |
FairyMental | 40:ba083993b481 | 14 | } |
FairyMental | 46:0de1f3c7d118 | 15 | Measure::Measure(LocalDate d,float f, float h, float p) |
FairyMental | 46:0de1f3c7d118 | 16 | { |
FairyMental | 46:0de1f3c7d118 | 17 | date = d; |
FairyMental | 46:0de1f3c7d118 | 18 | temperature = f; |
FairyMental | 46:0de1f3c7d118 | 19 | humidity = h; |
FairyMental | 46:0de1f3c7d118 | 20 | pressure = p; |
FairyMental | 46:0de1f3c7d118 | 21 | } |