2020-01-09 12:43:07 +00:00
|
|
|
/**
|
|
|
|
* Single user information
|
|
|
|
*
|
|
|
|
* @author Pierre HUBERT
|
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <string>
|
2020-01-12 20:15:51 +00:00
|
|
|
#include <map>
|
2020-01-09 12:43:07 +00:00
|
|
|
|
|
|
|
class User
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
User();
|
|
|
|
User(int id, std::string firstName, std::string lastName);
|
|
|
|
|
|
|
|
int iD() const;
|
|
|
|
void setID(int iD);
|
|
|
|
|
|
|
|
std::string firstName() const;
|
|
|
|
void setFirstName(const std::string &firstName);
|
|
|
|
|
|
|
|
std::string lastName() const;
|
|
|
|
void setLastName(const std::string &lastName);
|
|
|
|
|
|
|
|
std::string fullName() const;
|
|
|
|
|
|
|
|
private:
|
|
|
|
int mID;
|
|
|
|
std::string mFirstName;
|
|
|
|
std::string mLastName;
|
|
|
|
};
|
2020-01-12 20:15:51 +00:00
|
|
|
|
|
|
|
typedef std::map<int, User> UsersList;
|