26 lines
338 B
C
26 lines
338 B
C
|
#pragma once
|
|||
|
|
|||
|
// Objects for user management
|
|||
|
//
|
|||
|
// created on 2022-09-19
|
|||
|
//
|
|||
|
|
|||
|
#include <string>
|
|||
|
|
|||
|
class hguser
|
|||
|
{
|
|||
|
std::string name_;
|
|||
|
std::string pwd_;
|
|||
|
int priv_;
|
|||
|
|
|||
|
public:
|
|||
|
hguser();
|
|||
|
~hguser();
|
|||
|
|
|||
|
public:
|
|||
|
int login(const char* name, const char* pwd);
|
|||
|
int logout(const char* name, const char* pwd);
|
|||
|
|
|||
|
bool has_privilege(int priv);
|
|||
|
};
|