WindLog.cpp - / WindLog.cpp / / Class for managing wind log...

This preview shows page 1 - 3 out of 3 pages.

The preview shows page 2 - 3 out of 3 pages.
// WindLog.cpp//// Class for managing wind log information//// Version 01// 28/02/2019 Vu Thanh Long Started//---------------------------------------------------------------------------------//----------------------------------------------------------------------------// Includes#include <iostream>#include "WindLog.h"//----------------------------------------------------------------------------// Default constructorWindLog::WindLog(){d = Date(0,0,0);t = Time(0,0);w = Weather(0,0,0);}//----------------------------------------------------------------------------// Second constructorWindLog::WindLog(Date d, Time t, Weather w){this->d = d;this->t = t;this->w = w;}//----------------------------------------------------------------------------// This function will set the value of Datevoid WindLog::setDate(Date d){this->d = d;}//----------------------------------------------------------------------------// This function will set the value of Timevoid WindLog::setTime(Time t){this->t = t;}//----------------------------------------------------------------------------// This function will set the value of Weathervoid WindLog::setWeather(Weather w){this->w = w;}//----------------------------------------------------------------------------// This function will set the value of Date, Time and Weathervoid WindLog::setFull(Date d, Time t, Weather w){this->d = d;this->t = t;this->w = w;}//----------------------------------------------------------------------------
// This function will get the value of DateDate WindLog::getDate() const{return d;}//----------------------------------------------------------------------------// This function will get the value of TimeTime WindLog::getTime() const{return t;}//----------------------------------------------------------------------------// This function will get the value of WeatherWeather WindLog::getWeather() const
End of preview. Want to read all 3 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
One
Professor
N/A
Tags
Return statement, Unix time, System time, Time t

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture