![](/media/cache/profiles/ba5be68d3d541f2ca043d77fc54fe702.jpg.50x50_q85.jpg)
3rd Repo, trying to figure this out.
Fork of SOFT253_Template_Weather_OS_54 by
Measure/Measure.cpp@81:996c0a3319b4, 2017-05-11 (annotated)
- Committer:
- aburch1
- Date:
- Thu May 11 14:34:53 2017 +0000
- Revision:
- 81:996c0a3319b4
- Parent:
- Measure.cpp@68:d3765f93c16a
- Child:
- 82:668b51a39148
Changed the logger to use char arrays of a size 256 and fixed some issues that cropped up from this. Moved all printing statements over to use the logger
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 |
aburch1 | 81:996c0a3319b4 | 4 | Measure::Measure(double f, double h, double 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 |
aburch1 | 81:996c0a3319b4 | 17 | Measure::Measure(LocalDate d,double f, double h, double 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 | } |