-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSchedule.h
35 lines (30 loc) · 1.01 KB
/
Schedule.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#ifndef SCHEDULE_H
#define SCHEDULE_H
#include <iostream>
#include <string>
#include <vector>
#include "Class.h"
using namespace std;
class Schedule {
public:
// --------------Constructor functions--------------
Schedule();
// ------------------Get functions------------------
vector<Class> get_schedule() const;
vector<string> get_lecturers() const;
float get_rating() const;
// ---------------Schedule functions----------------
bool fits_schedule(const Class& cl);
bool add_class(const Class& cl);
bool add_class(const vector<Class>& cl);
void sort_schedule();
// -----------------Print function------------------
void print() const;
// ---------------Operators function----------------
friend ostream& operator << (ostream& os, const Schedule& sc);
bool operator < (const Schedule& cmp_schedule);
private:
vector<Class> schedule_;
static map<string, int> ratings_list;
};
#endif