]> SALOME platform Git repositories - modules/gde.git/blob - projects/GDE_API_CPP/api/src/User.hpp
Salome HOME
API c++
[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     inline int getId() const { return _id; }
13     inline void setId(int id) { this->_id = id; }
14
15     inline std::string getName() const { return _name; }
16     inline void setName(const std::string& name) { this->_name = name; }
17
18     inline std::string getPassword() const { return _password; }
19     inline void setPassword(const std::string& password) { this->_password = password; }
20
21   private:
22     User(int id=-1, std::string name="", std::string password="")
23       : _id(id), _name(name), _password(password) {}
24     ~User() {}
25     User(const User&); // non copyable
26     User& operator=(const User&); // non copyable
27
28   private:
29     int _id;
30     std::string _name;
31     std::string _password;
32   };
33
34 };
35
36 #endif