9 friend class UserService;
12 inline int getId() const { return _id; }
13 inline void setId(int id) { this->_id = id; }
15 inline std::string getName() const { return _name; }
16 inline void setName(const std::string& name) { this->_name = name; }
18 inline std::string getPassword() const { return _password; }
19 inline void setPassword(const std::string& password) { this->_password = password; }
22 User(int id=-1, std::string name="", std::string password="")
23 : _id(id), _name(name), _password(password) {}
25 User(const User&); // non copyable
26 User& operator=(const User&); // non copyable
31 std::string _password;