#include "courseInfo.h" /**************************************************************** FUNCTION: courseInfo() ARGUMENTS: none RETURNS: none NOTES: this is the constructor for the CourseInfo class ****************************************************************/ CourseInfo::CourseInfo() { } /**************************************************************** FUNCTION: ~CourseInfo() ARGUMENTS: none RETURNS: none NOTES: this is the destructor for the CourseInfo class ****************************************************************/ CourseInfo::~CourseInfo() { } /**************************************************************** FUNCTION: getCourseID() const ARGUMENTS: none RETURNS: string courseID NOTES: this function returns the courseID for the student ****************************************************************/ string CourseInfo::getCourseID() const { return courseID; } /**************************************************************** FUNCTION: setCourseID(const string &x) ARGUMENTS: const string &x RETURNS: none NOTES: this function sets the courseID for the student ****************************************************************/ void CourseInfo::setCourseID(string x) { courseID = x; } /**************************************************************** FUNCTION: setYearTaken(const string &x) ARGUMENTS: const string &x - the new YearTaken RETURNS: none NOTES: this function sets the students YearTaken for a course ****************************************************************/ void CourseInfo::setYearTaken(string x) { yearTaken = x; } /**************************************************************** FUNCTION: getYearTaken() const ARGUMENTS: none RETURNS: string yearTaken NOTES: this returns the students YearTaken for a certain class ****************************************************************/ string CourseInfo::getYearTaken() const { return yearTaken; } /**************************************************************** FUNCTION: setSemesterTaken(const string &x) ARGUMENTS: const string &x - the semesterTaken value RETURNS: none NOTES: this function sets the students semester taken for a specific course ****************************************************************/ void CourseInfo::setSemesterTaken(string x) { semesterTaken = x; } /**************************************************************** FUNCTION: getSemesterTaken() const ARGUMENTS: none RETURNS: string semesterTaken - returns the semester taken NOTES: this function gets the students semester taken ****************************************************************/ string CourseInfo::getSemesterTaken() const { return semesterTaken; } /**************************************************************** FUNCTION: setGrade(const string &x) ARGUMENTS: const string &x RETURNS: none NOTES: this functions sets the grade for a certain class ****************************************************************/ void CourseInfo::setGrade(string x) { grade = x; } /**************************************************************** FUNCTION: getGrade() const ARGUMENTS: none RETURNS: string grade NOTES: this function returns the grade of the student in a specific class ****************************************************************/ string CourseInfo::getGrade() const { return grade; } /**************************************************************** FUNCTION: operator==() ARGUMENTS: CourseInfo object RETURNS: bool t/f NOTES: this overloads the equal to operator ****************************************************************/ bool CourseInfo::operator==(const CourseInfo & right) const { return (courseID == right.getCourseID() && semesterTaken == right.semesterTaken && yearTaken == right.yearTaken); // }