3rd Repo, trying to figure this out.

Dependencies:   LPS25H hts221

Fork of SOFT253_Template_Weather_OS_54 by Stage-1 Students SoCEM

Measure.cpp

Committer:
FairyMental
Date:
2017-04-13
Revision:
68:d3765f93c16a
Parent:
65:3723d2729b68

File content as of revision 68:d3765f93c16a:

#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;   
    }