Encapsulates an /etc/group entry.
More...
#include <DwmGroup.hh>
|
|
| Group (gid_t gid) |
| | Construct from a group ID.
|
| |
|
| Group (const std::string &name) |
| | Construct from a group name.
|
| |
|
void | Set (const struct group &group) |
| | Use the contents of group to fill all of our members.
|
| |
|
gid_t | Id () const |
| | Returns the group ID.
|
| |
|
const std::string & | Name () const |
| | Returns the group name.
|
| |
|
const std::string & | Password () const |
| | Returns the group password.
|
| |
|
const std::vector< std::string > & | Members () const |
| | Returns the group members.
|
| |
|
|
std::ostream & | operator<< (std::ostream &os, const Group &group) |
| | Prints to an ostream in /etc/group format.
|
| |
Encapsulates an /etc/group entry.
The main reason for this class: some sub-par operating systems don't provide threadsafe versions of getgrgid() and getgrnam().
The documentation for this class was generated from the following file: