Mania++
 All Classes Functions Variables Pages
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 
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_
Definition: Permission.h:16
Contains utilities to format text.
Definition: Text.h:12