72 Group(
const std::string & name);
77 void Set(
const struct group & group);
87 const std::string &
Name()
const;
92 const std::string &
Password()
const;
97 const std::vector<std::string> &
Members()
const;
107 std::string _password;
108 std::vector<std::string> _members;
110 static std::mutex _mutex;
115 #endif // _DWMGROUP_HH_ gid_t Id() const
Returns the group ID.
void Set(const struct group &group)
Use the contents of group to fill all of our members.
const std::string & Name() const
Returns the group name.
Encapsulates an /etc/group entry.
Definition: DwmGroup.hh:61
const std::vector< std::string > & Members() const
Returns the group members.
Definition: DwmBZ2IO.hh:67
friend std::ostream & operator<<(std::ostream &os, const Group &group)
Prints to an ostream in /etc/group format.
Group(gid_t gid)
Construct from a group ID.
const std::string & Password() const
Returns the group password.