1 #ifndef GDE_PROFILE_HPP
2 #define GDE_PROFILE_HPP
4 #include "ProfileAttribute.hpp"
12 friend class ProfilesService;
13 friend class GDESession;
16 Profile(const std::string& name, const std::vector<ProfileAttribute>& attributes=std::vector<ProfileAttribute>())
17 : _id(0), _name(name), _attributes(attributes)
21 inline int getId() const { return _id; }
22 inline void setId(int id) { this->_id = id; }
24 inline std::string getName() const { return _name; }
25 inline void setName(const std::string& name) { this->_name = name; }
27 inline const std::vector<ProfileAttribute>& getAttributes() const { return _attributes; }
28 inline void setAttributes(const std::vector<ProfileAttribute>& attributes) { this->_attributes = attributes; }
31 Profile(int id, const std::string& name, const std::vector<ProfileAttribute>& attributes)
32 : _id(id), _name(name), _attributes(attributes)
34 //Profile(const Profile&); // non copyable
35 //Profile& operator=(const Profile&); // non copyable
40 std::vector<ProfileAttribute> _attributes;