forked from Adriano-7/feup-aed-project-1
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Slot.h
39 lines (33 loc) · 980 Bytes
/
Slot.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
36
37
38
39
#ifndef TRABALHO_SLOT_H
#define TRABALHO_SLOT_H
#include <string>
#include <vector>
using namespace std;
/**
* @brief Class that represents a slot (time and day) in which a class of a given course is held.
*/
class Slot {
public:
Slot();
Slot(const string &weekDay, const float &beginTime, const float &duration, const string &type);
string getWeekDay() const;
string getType() const;
float getStartTime() const;
float getEndTime() const;
bool overlaps(const Slot &other) const;
bool operator !=(const Slot &other) const;
bool operator ==(const Slot &other) const;
bool operator < (const Slot &other) const;
private:
string weekDay;
float startTime;
float endTime;
/**
* @brief Type of the class
* T - Teórica
* P - Prática
* PL - Prática Laboratorial
*/
string type;
};
#endif //TRABALHO_SLOT_H