Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of SOFT253_Template_Weather_OS_54 by
Measure/Measure.cpp
- Committer:
- aburch1
- Date:
- 2017-05-11
- Revision:
- 82:668b51a39148
- Parent:
- 81:996c0a3319b4
- Child:
- 83:0d3572a8a851
File content as of revision 82:668b51a39148:
#include "Measure.h"
//Constructor taking 3 parameters
Measure::Measure(float f, float h, float p) {
temperature = f;
humidity = h;
pressure = p;
}
// Empty / default constructor
Measure::Measure()
{
temperature = 0;
humidity = 0;
pressure = 0;
}
// Constructor taking 4 paramters, in cluding a LocalDate
Measure::Measure(LocalDate d,float f, float h, float p)
{
date = d;
temperature = f;
humidity = h;
pressure = p;
}
