struct Offerings { string key; string activity_code; string title; vector<session_type> sessions_offered; bool operator==(const Offerings& other) const; static string get_department_code(const string& activity_code); };
Represents all the offerings of a course (in a given study session).
string key;
A unique key that identifies this course. When selecting courses, the keys
of the courses to be selected should be passed to SelectCourses()
.
string activity_code;
The activity code of the course.
string title;
The course's title.
vector<session_type> sessions_offered;
The sessions (fall, spring, or full-year) in which this course is offered.
bool operator==(const Offerings& other) const;
Compare this Offerings object to another for equality. Two Offerings objects are equal if they have the same key.
static string get_department_code(const string& activity_code);
Get the department code portion of an activity code. For example, for 'CSC108H1', the department code is 'CSC'.