Storia
 
Loading...
Searching...
No Matches
User Class Reference

#include <user.h>

Inheritance diagram for User:
Inheritance graph
Collaboration diagram for User:
Collaboration graph

Public Member Functions

 User ()
 
std::string getEmail ()
 
std::string getPassword ()
 
std::string getUserName ()
 
std::size_t getId ()
 
bool getIsAdmin ()
 
void setAdmin ()
 
void setUserName (std::string name)
 
bool checkEmail (const std::string &email, const std::string &fileName)
 
bool checkPassword (const std::string &password)
 
bool isUserEmpty ()
 
nlohmann::json saveAsJson ()
 
bool loadFromFile (const std::string &fileName, const std::string &emailToFind)
 
void displayUser ()
 
void eraseUser ()
 

Constructor & Destructor Documentation

◆ User()

User::User ( )

Member Function Documentation

◆ checkEmail()

bool User::checkEmail ( const std::string & email,
const std::string & fileName )
Here is the call graph for this function:

◆ checkPassword()

bool User::checkPassword ( const std::string & password)

◆ displayUser()

void User::displayUser ( )

◆ eraseUser()

void User::eraseUser ( )

◆ getEmail()

std::string User::getEmail ( )
inline

◆ getId()

std::size_t User::getId ( )
inline

◆ getIsAdmin()

bool User::getIsAdmin ( )
inline

◆ getPassword()

std::string User::getPassword ( )
inline

◆ getUserName()

std::string User::getUserName ( )
inline

◆ isUserEmpty()

bool User::isUserEmpty ( )
inline

◆ loadFromFile()

bool User::loadFromFile ( const std::string & fileName,
const std::string & emailToFind )
Here is the call graph for this function:

◆ saveAsJson()

nlohmann::json User::saveAsJson ( )
Here is the call graph for this function:

◆ setAdmin()

void User::setAdmin ( )
inline

◆ setUserName()

void User::setUserName ( std::string name)
inline

The documentation for this class was generated from the following files: