Mania++
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Variables
Pages
src
Permissions
Permission.h
1
#ifndef PERMISSION_H_
2
#define PERMISSION_H_
3
4
//* Permission
8
enum
Permission
9
{
10
Master = 4,
11
Admin = 3,
12
Operator = 2,
13
User = 1
14
};
15
16
class
Permissions
17
{
18
public
:
19
static
std::string
Text
(Permission perm)
20
{
21
switch
(perm)
22
{
23
case
Permission::Master:
24
return
"MasterAdmin"
;
25
case
Permission::Admin:
26
return
"Admin"
;
27
case
Permission::Operator:
28
return
"Operator"
;
29
30
default
:
31
return
"User"
;
32
}
33
}
34
};
35
36
#endif // PERMISSION_H_
Permissions
Definition:
Permission.h:16
Text
Contains utilities to format text.
Definition:
Text.h:12
Generated on Sat Mar 18 2017 10:18:53 for Mania++ by
1.8.6