/* File Name: Ailment.cpp Author: Essam Fahmy Date: 2023-11-01 Ailment class implementations */ #include "Ailment.h" using namespace std; Ailment::Ailment(string name, int severity, int timeCriticality, int contagiousness) : name_(std::move(name)), severity_(severity), timeCriticality_(timeCriticality), contagiousness_(contagiousness) {} string Ailment::get_name() const { return name_; } int Ailment::get_severity() const { return severity_; } int Ailment::get_time_sensitivity() const { return timeCriticality_; } int Ailment::get_contagiousness() const { return contagiousness_; } bool Ailment::operator==(const Ailment& other) const { return name_ == other.name_ && severity_ == other.severity_ && timeCriticality_ == other.timeCriticality_ && contagiousness_ == other.contagiousness_; }