-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathTeacher.h
36 lines (27 loc) · 909 Bytes
/
Teacher.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
//
// Teacher.hpp
//
#ifndef Teacher_h
#define Teacher_h
#include <iostream>
#include "Reader.h"
#include "User.h"
using namespace std;
class Teacher: public Reader {
public:
// constructors
Teacher();
Teacher(string tempusername, string temppassword, int tempnumcopies, list<Copy> tempcopiesborrowed, int tempnumbooks, list<Book> tempbooksreserved, int tempnumpenalties);
Teacher(Reader);
// populate teachers based on readers list
static void populateteachers(list<Reader>& myreaders, list<Teacher>& myteachers);
// print teacher info
static void printteachers(list<Teacher>& myteachers);
void printteacher();
//find teacher based on username
bool operator==(const Teacher& rhs);
void addteachercopyborrowed(Copy);
private:
int maxlength;
};
#endif /* Teacher_h */