#include "Appointment.h" using std::string; //------------------------------------------------------------------------- Appointment::Appointment( int anHour, const string& aDescription ) { hr = anHour; descr = aDescription; } //------------------------------------------------------------------------- Appointment::~Appointment() { } //------------------------------------------------------------------------- string Appointment::description() const { return descr; } //------------------------------------------------------------------------- int Appointment::hour() const { return hr; } //------------------------------------------------------------------------- void Appointment::setDescription( const string& newDescription ) { descr = newDescription; } //------------------------------------------------------------------------- void Appointment::setHour( int newHour ) { hr = newHour; } //------------------------------------------------------------------------- void Appointment::setTime( const string& time ) { // Needs an implementation } //------------------------------------------------------------------------- string Appointment::toString() const { return "fix me"; } //------------------------------------------------------------------------- bool Appointment::operator==( const Appointment& rhs ) const { return hr == rhs.hr && descr == rhs.descr; } //------------------------------------------------------------------------- bool Appointment::operator!=( const Appointment& rhs ) const { return !( *this == rhs ); }