user.h
1 /*
2 * <one line to give the program's name and a brief idea of what it does.>
3 * Copyright (C) 2021 <copyright holder> <email>
4 *
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */
18 
19 
20 #ifndef USER
21 #define USER
22 
23 
24 #include <string>
25 
26 
27 namespace NAF
28 {
29  namespace Security
30  {
31  class User;
32  }
33 }
34 
35 
37 {
38  public:
39  User();
40  User(int id, std::string username, std::string password);
41 
42  int get_id() const { return id_; }
43  std::string get_username() const { return username_; }
44  std::string get_password() const { return password_; }
45 
46  void set_id(int id) { id_ = id; }
47  void set_username(std::string username) { username_ = username; }
48  void set_password(std::string password) { password_ = password; }
49 
50  private:
51  int id_;
52  std::string username_;
53  std::string password_;
54 };
55 
56 
57 #endif // USER
Definition: user.h:37