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 class  IFS::UserRole : uint8_t { IFS::XX , IFS::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.
Parameters
str
defaultRoleReturned if string isn't recognsed
Return values
UserRole
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")
#define XX(_tag, _char, _comment)
Definition: UserRole.h:37

◆ XX

#define XX (   _tag,
  _char,
  _comment 
)    _tag,

Function Documentation

◆ toString()

String toString ( IFS::UserRole  role)