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