upd: ready to write the engine
This commit is contained in:
@ -15,6 +15,11 @@ class UserDataBase {
|
||||
UserDataBase() = default;
|
||||
void Open(std::string file_name);
|
||||
bool PAM(const std::string &user_id, const std::string &password);
|
||||
int GetPrevilege(const std::string &user_id);
|
||||
void AddUser(const std::string &user_id, const std::string &password,
|
||||
const std::string &user_name, int privilege);
|
||||
void DeleteUser(const std::string &user_id);
|
||||
void ChangePassword(const std::string &user_id, const std::string &password);
|
||||
};
|
||||
class BookDataBase {
|
||||
DriveArray<BookItemClass> full_book_data;
|
||||
@ -22,6 +27,12 @@ class BookDataBase {
|
||||
|
||||
public:
|
||||
void Open(std::string file_name);
|
||||
void QueryBook(const std::string &ISBN, const std::string &name,
|
||||
const std::string &author, const std::string &keyword,
|
||||
std::vector<BookItemClass> &ret);
|
||||
void ModifyInfo(const std::string &ISBN, const std::string &name,
|
||||
const std::string &author, const std::string &keyword,
|
||||
double price);
|
||||
};
|
||||
class LogDataBase {
|
||||
DriveArray<FinanceItemClass> finance_data;
|
||||
@ -29,6 +40,7 @@ class LogDataBase {
|
||||
|
||||
public:
|
||||
void Open(std::string file_name);
|
||||
void QueryFinance(int count, std::vector<FinanceItemClass> &ret);
|
||||
};
|
||||
|
||||
#endif // PROTECTOR_DATABASE_HPP
|
Reference in New Issue
Block a user