-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathstudent.h
43 lines (34 loc) · 1.1 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
40
41
42
43
#ifndef STUDENT_H
#define STUDENT_H
#include "person.h"
#include <QVector>
#include "course.h"
class Student : public Person{
private:
QString academic_year;
QString department;
QString GPA;
QVector <Course> courses;
public:
Student();
Student(QString first_name, QString last_name, QString gendre, QString picture, QString birth_date, QString address,
QString college_id, QString pasword, QString academic_year, QString department);
void setAcademicYear(QString academic_year);
QString getAcademicYear();
void setDepartment(QString department);
QString getDepartment();
void setGPA(QString GPA);
QString getGPA();
static bool isInDatabase(long long id);
bool save();
void delete1();
QVector<Course> getCourses();
void addCourse(QString course_name);
void deleteCourse(QString course_name);
static QVector<Student> all();
static Student find(long long id);
static QVector<Student> where(QString column, QString value);
static int getLastId();
static QVector<Student> getByCourse(QString);
};
#endif // STUDENT_H