UserRole.h File Reference
#include "Types.h"
Include dependency graph for UserRole.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
| IFS | |
Macros | |
| #define | IFS_USER_ROLE_MAP(XX) |
| #define | XX(_tag, _char, _comment) _tag, |
Enumerations | |
| enum | IFS::UserRole : uint8_t { IFS::UserRole::XX, IFS::UserRole::MAX } |
Functions | |||||||
| char | IFS::getChar (UserRole role) | ||||||
| UserRole | IFS::getUserRole (char code, UserRole defaultRole) | ||||||
| String | toString (IFS::UserRole role) | ||||||
Return the access type value for the given string. | |||||||
| |||||||
| UserRole | IFS::getUserRole (const char *str, UserRole defaultRole) | ||||||
| UserRole | IFS::getUserRole (const String &str, UserRole defaultRole) | ||||||
Return the access type value for the given string. | |||||||
| |||||||
| UserRole | IFS::getUserRole (const char *str, UserRole defaultRole) | ||||||
| UserRole | IFS::getUserRole (const String &str, UserRole defaultRole) | ||||||
Macro Definition Documentation
◆ IFS_USER_ROLE_MAP
| #define IFS_USER_ROLE_MAP | ( | XX | ) |
Value:
XX(None, -, "No assigned role") \
XX(Guest, g, "User-type access without authentication") \
XX(User, u, "Normal user") \
XX(Manager, m, "Perform restricted system functions, reset user passwords, etc.") \
XX(Admin, a, "Full access")
◆ XX
| #define XX | ( | _tag, | |
| _char, | |||
| _comment | |||
| ) | _tag, |
Function Documentation
◆ toString()
| String toString | ( | IFS::UserRole | role | ) |
1.8.17