29 #define IFS_USER_ROLE_MAP(XX) \ 30 XX(None, -, "No assigned role") \ 31 XX(Guest, g, "User-type access without authentication") \ 32 XX(User, u, "Normal user") \ 33 XX(Manager, m, "Perform restricted system functions, reset user passwords, etc.") \ 34 XX(Admin, a, "Full access") 37 #define XX(_tag, _char, _comment) _tag, char getChar(UserRole role)
XX(_tag, _char, _comment)
const char * c_str() const
Get a constant (un-modifiable) pointer to String content.
Definition: WString.h:641
#define str(s)
Definition: testrunner.h:124
Actually maxmimum value + 1...
The String class.
Definition: WString.h:136
Definition: DirectoryTemplate.h:36
UserRole
Definition: UserRole.h:36
String toString(IFS::UserRole role)
#define IFS_USER_ROLE_MAP(XX)
Definition: UserRole.h:29
UserRole getUserRole(const char *str, UserRole defaultRole)