Téléverser les fichiers vers "/"
This commit is contained in:
31
User.h
Normal file
31
User.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef USER_H
|
||||
#define USER_H
|
||||
|
||||
#include <string>
|
||||
|
||||
enum class Role {
|
||||
ADMIN,
|
||||
PROF,
|
||||
STUDENT
|
||||
};
|
||||
|
||||
class User {
|
||||
protected:
|
||||
int id;
|
||||
std::string username;
|
||||
std::string passwordHash;
|
||||
Role role;
|
||||
|
||||
public:
|
||||
User(int id, const std::string& username, const std::string& passwordHash, Role role);
|
||||
|
||||
virtual ~User() = default;
|
||||
|
||||
int getId() const;
|
||||
std::string getUsername() const;
|
||||
Role getRole() const;
|
||||
|
||||
virtual void displayMenu() const = 0;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user