1
0
mirror of https://gitlab.com/comunic/comunicterm synced 2024-11-16 18:41:07 +00:00
comunicterm/entities/user.h

36 lines
584 B
C
Raw Normal View History

2020-01-09 12:43:07 +00:00
/**
* Single user information
*
* @author Pierre HUBERT
*/
#pragma once
#include <string>
#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;
};
typedef std::map<int, User> UsersList;