-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathReaderOperation.h
31 lines (27 loc) · 1.1 KB
/
ReaderOperation.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
#pragma once
#include"DatabaseOperation.h"
#include"Menu.h"
void readerConstructed(string username);//ÅжÏÒì³£
void constructedAll();//¸üÐÂÒì³£½èÔÄONLY
string getPasswd();
void borrowBook(string username,int bookId);
bool returnBook(string username,int bookId);
bool printBorrowedBooks(string username);//Change the structure
bool searchBooks(const string& searchTerm);
bool saveData(string username);
bool sortBookIds(string username);
bool clearDatabase(string username);
void addTxtFile(const string& filename);
void editTxtFile(const string& filename);
void printTxtFile(const string& filename);
bool passwdChange(string username, string newPassword);
void printUsers();
void addUser(string username, string password);
bool deleteUser(string username);
void addSU();
bool cmp(BorrowedBooks a, BorrowedBooks b);
bool isRightCommit(time_t lastExecutionTime);
void recordWrongCommit(string username,BorrowedBooks borrowedBook);
string showTime(long long time1);
void printWrongCommit();
bool returnBook(string username, int bookId);