upd: ready to write the database and engine
This commit is contained in:
28
backend/include/database.h
Normal file
28
backend/include/database.h
Normal file
@ -0,0 +1,28 @@
|
||||
#ifndef PROTECTOR_DATABASE_HPP
|
||||
#define PROTECTOR_DATABASE_HPP
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "bs-utility.h"
|
||||
#include "drivearray.hpp"
|
||||
#include "key2index.hpp"
|
||||
|
||||
class UserDataBase {
|
||||
DriveArray<UserItemClass> full_user_data;
|
||||
String2Index user_name2index;
|
||||
|
||||
public:
|
||||
UserDataBase() = default;
|
||||
void Open(std::string file_name);
|
||||
bool PAM(const std::string &user_id, const std::string &password);
|
||||
};
|
||||
class BookDataBase {
|
||||
;
|
||||
};
|
||||
class FinanceDataBase {
|
||||
;
|
||||
};
|
||||
class OperationLogDataBase {
|
||||
;
|
||||
};
|
||||
#endif // PROTECTOR_DATABASE_HPP
|
Reference in New Issue
Block a user