3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Measure.cpp@68:d3765f93c16a, 2017-04-13 (annotated)
- Committer:
- FairyMental
- Date:
- Thu Apr 13 11:07:14 2017 +0000
- Revision:
- 68:d3765f93c16a
- Parent:
- 65:3723d2729b68
Commented some more 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 | 68:d3765f93c16a | 3 | //Constructor taking 3 parameters |
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 | 68:d3765f93c16a | 9 | // Empty / default constructor |
FairyMental | 40:ba083993b481 | 10 | Measure::Measure() |
FairyMental | 40:ba083993b481 | 11 | { |
FairyMental | 40:ba083993b481 | 12 | temperature = 0; |
FairyMental | 40:ba083993b481 | 13 | humidity = 0; |
FairyMental | 40:ba083993b481 | 14 | pressure = 0; |
FairyMental | 40:ba083993b481 | 15 | } |
FairyMental | 68:d3765f93c16a | 16 | // Constructor taking 4 paramters, in cluding a LocalDate |
FairyMental | 46:0de1f3c7d118 | 17 | Measure::Measure(LocalDate d,float f, float h, float p) |
FairyMental | 46:0de1f3c7d118 | 18 | { |
FairyMental | 46:0de1f3c7d118 | 19 | date = d; |
FairyMental | 46:0de1f3c7d118 | 20 | temperature = f; |
FairyMental | 46:0de1f3c7d118 | 21 | humidity = h; |
FairyMental | 46:0de1f3c7d118 | 22 | pressure = p; |
FairyMental | 46:0de1f3c7d118 | 23 | } |