upd: ready to write the database and engine

This commit is contained in:
2023-12-12 15:46:43 +00:00
parent 824145ec39
commit d9d32c5e24
8 changed files with 65 additions and 64 deletions

View 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