]> SALOME platform Git repositories - modules/gde.git/blob - projects/GDE_API_CPP/api/src/User.hpp
Salome HOME
add simple test
[modules/gde.git] / projects / GDE_API_CPP / api / src / User.hpp
1 #ifndef GDE_USER_HPP
2 #define GDE_USER_HPP
3
4 #include <string>
5
6 namespace gde {
7
8   class User {
9     friend class UserService;
10
11   public:
12     ~User() {}
13
14     inline int getId() const { return _id; }
15     inline void setId(int id) { this->_id = id; }
16
17     inline std::string getName() const { return _name; }
18     inline void setName(const std::string& name) { this->_name = name; }
19
20     inline std::string getPassword() const { return _password; }
21     inline void setPassword(const std::string& password) { this->_password = password; }
22
23   private:
24     User(int id=-1, std::string name="", std::string password="")
25       : _id(id), _name(name), _password(password) {}
26     User(const User&); // non copyable
27     User& operator=(const User&); // non copyable
28
29   private:
30     int _id;
31     std::string _name;
32     std::string _password;
33   };
34
35 };
36
37 #endif