-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.h
56 lines (37 loc) · 2.38 KB
/
functions.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
44
45
46
47
48
49
50
51
52
53
54
55
56
//
// functions.h
//
#ifndef functions_h
#define functions_h
#include <iostream>
#include <list>
#include "Librarian.h"
void outputlists(list<Book>&, list<Copy>&, list<Reader>&, list<Librarian>&);
int checkusertype();
void loginlibrarian(list<Librarian>& mylibrarians, string& tempusername);
void loginreader(list<Reader>& myreaders, char& readertype, string& tempusername);
int optionselectlibrarian();
int optionselectreader();
list<Book> searchbooks(string&, list<Book>&);
bool isonlydigits(string&);
void searchfunction(list<Book>& mybooks, list<Copy>& mycopies);
void addnewbook(list<Book>& mybooks, list<Copy>& mycopies);
void addexistingbookcopy(list<Book>& mybooks, list<Copy>& mycopies);
void deletecopy(list<Book>& mybooks, list<Copy>& mycopies, list<Reader>&, int& optionselect);
void searchusers(list<Reader>&, list<Librarian>&);
void addnewuser(list<Reader>&, list<Librarian>&, list<Teacher>&, list<Student>&);
bool usernameinuse(list<Reader>&, list<Librarian>&, string&);
void deleteuser(list<Reader>&, list<Librarian>&, list<Student>&, list<Teacher>&, list<Book>&);
bool whoisthisuser(list<Reader>&, list<Librarian>&, string&, char&);
void borrowbookstudent(list<Book>& mybooks, list<Copy>& mycopies, list<Reader>& myreaders, string& username, int& currentdate);
void borrowbookstudent2(list<Book>&, list<Copy>&, list<Reader>&, string& username, int& currentdate, int& borrowid);
void borrowbookstudent3(list<Book>&, list<Copy>&, list<Reader>&, string& username, int& currentdate, int& borrowid);
void borrowbookteacher(list<Book>& mybooks, list<Copy>& mycopies, list<Reader>& myreaders, string& username, int& currentdate);
void borrowbookteacher2(list<Book>&, list<Copy>&, list<Reader>&, string& username, int& currentdate, int& borrowid);
void borrowbookteacher3(list<Book>&, list<Copy>&, list<Reader>&, string& username, int& currentdate, int& borrowid);
bool overduecopies(list<Copy>& mycopies, string& username, int& currentdate);
bool maxcopiesreached(list<Reader>& myreaders, string& username);
void returnbooks(list<Copy>& mycopies, list<Reader>& myreaders, string& username, int& currentdate, char& readertype);
void reservebooks(list<Book>& mybooks, list<Copy>& mycopies, list<Reader>&, string& username, int& currentdate, char& readertype);
void cancelreservation(list<Book>& mybooks, list<Copy>& mycopies, list<Reader>& myreaders, string& username, int& currentdate);
#endif /* functions_h */