![](/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@83:0d3572a8a851, 2017-05-11 (annotated)
- Committer:
- aburch1
- Date:
- Thu May 11 19:23:55 2017 +0000
- Revision:
- 83:0d3572a8a851
- Parent:
- 82:668b51a39148
- Child:
- 85:422d0a1b95cf
Comments cleaned and improved throughout classes. Main header class comment complete, other class comments still need to be written.
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 | |
aburch1 | 83:0d3572a8a851 | 3 | // |
aburch1 | 83:0d3572a8a851 | 4 | // Measure objects holding data collected from sensor board. |
aburch1 | 83:0d3572a8a851 | 5 | // |
aburch1 | 83:0d3572a8a851 | 6 | |
aburch1 | 83:0d3572a8a851 | 7 | Measure::Measure(float f, float h, float p) { |
aburch1 | 83:0d3572a8a851 | 8 | temperature = f; |
aburch1 | 83:0d3572a8a851 | 9 | humidity = h; |
aburch1 | 83:0d3572a8a851 | 10 | pressure = p; |
aburch1 | 83:0d3572a8a851 | 11 | } |
aburch1 | 83:0d3572a8a851 | 12 | |
aburch1 | 83:0d3572a8a851 | 13 | Measure::Measure() |
aburch1 | 83:0d3572a8a851 | 14 | { |
aburch1 | 83:0d3572a8a851 | 15 | temperature = 0; |
aburch1 | 83:0d3572a8a851 | 16 | humidity = 0; |
aburch1 | 83:0d3572a8a851 | 17 | pressure = 0; |
aburch1 | 83:0d3572a8a851 | 18 | } |
aburch1 | 83:0d3572a8a851 | 19 | |
aburch1 | 83:0d3572a8a851 | 20 | Measure::Measure(LocalDate d,float f, float h, float p) |
aburch1 | 83:0d3572a8a851 | 21 | { |
aburch1 | 83:0d3572a8a851 | 22 | date = d; |
aburch1 | 83:0d3572a8a851 | 23 | temperature = f; |
aburch1 | 83:0d3572a8a851 | 24 | humidity = h; |
aburch1 | 83:0d3572a8a851 | 25 | pressure = p; |
aburch1 | 83:0d3572a8a851 | 26 | } |