-
Notifications
You must be signed in to change notification settings - Fork 0
/
Student.h
39 lines (33 loc) · 1.02 KB
/
Student.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
//
// Created by manue on 30/10/2022.
//
#ifndef SCHEDULE_STUDENT_H
#define SCHEDULE_STUDENT_H
#include <vector>
#include "UcClass.h"
class Student {
public:
Student();
Student(unsigned code_);
Student(unsigned code_, const std::string &name_);
Student(unsigned code_, const std::string &name_, const std::list<UcClass> &ucClasses_);
unsigned getCode() const;
std::string getName() const;
std::list<UcClass> getUcClasses() const;
void setCode(unsigned code_);
void setName(const std::string &name_);
void setUcClasses(const std::list<UcClass> &ucClasses_);
void addUcClass(const UcClass &ucClass);
void removeUcClass(const UcClass &ucClass);
std::vector<bool> getYears() const;
bool inClass(const UcClass &ucClass) const;
bool inUc(const UcClass &ucClass) const;
bool operator<(const Student &other) const;
void printID() const;
void print() const;
private:
unsigned code;
std::string name;
std::list<UcClass> ucClasses;
};
#endif //SCHEDULE_STUDENT_H