mirror of
https://gitlab.com/comunic/comunicterm
synced 2024-11-16 10:31:06 +00:00
36 lines
584 B
C++
36 lines
584 B
C++
/**
|
|
* Single user information
|
|
*
|
|
* @author Pierre HUBERT
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <string>
|
|
#include <map>
|
|
|
|
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;
|
|
};
|
|
|
|
typedef std::map<int, User> UsersList;
|