#include "courseInfo.h" /**************************************************************** FUNCTION: courseInfo() ARGUMENTS: none RETURNS: none NOTES: this is the constructor for the CourseInfo class ****************************************************************/ CourseInfo::CourseInfo() { count = 0; } /**************************************************************** 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: incrementCount(int &x) ARGUMENTS: int x - the value of count RETURNS: none NOTES: this function increments the number of courses input ****************************************************************/ void CourseInfo::incrementCount(int &x) { x = x + 1; } /**************************************************************** FUNCTION: getCoount() const ARGUMENTS: none RETURNS: int count NOTES: this function returns the count of classes ****************************************************************/ int CourseInfo::getCount() const { return count; } void CourseInfo::addCourse(string ZID, CourseInfo c1) { cout << "IN ADD COURSE!!!" << endl; // addTohead(c1); }