-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdmin.h
More file actions
32 lines (28 loc) · 744 Bytes
/
Admin.h
File metadata and controls
32 lines (28 loc) · 744 Bytes
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
#pragma once
#include "LIB.h"
#include "Guest.h"
#include "Test.h"
class Admin: public Test {
public:
bool checkTrueSize(const str& login, int left, int right) const;
bool checkFirstSymbol(const str& login) const;
bool checkTrueLogin(str& login) const;
bool getIsAdmin() const;
bool checkLogin(const str& login);
bool checkPassword(const str& password);
void registerAdmin();
str codeStr(str& word);
str uncodeStr(str& word);
void loginAdmin();
void saveLPToFile(const str& login, const str& password) const;
void adminTools();
void editUsers();
void addGuest();
void addGuest(class Guest a);
void delGuest();
private:
str loginAdm, passwordAdm;
bool isAdmin = false;
vector <class Guest> guests;
vector <Test> tests;
};