|
libcosmos
Linux C++ System Programming Library
|
Group Database Information. More...
#include <GroupInfo.hxx>
Inheritance diagram for cosmos::GroupInfo:Public Member Functions | |
| GroupInfo (const SysString name) | |
Obtains GroupInfo for the given group name name. | |
| GroupInfo (const GroupID gid) | |
Obtains GroupInfo for the given numerical group id gid. | |
| GroupID | gid () const |
| The groups numerical ID. | |
| SysString | name () const |
| Returns the name associated with the group. | |
| SysString | passwd () const |
| Returns the optional encrypted group password. | |
| SysStringVector | members () const |
| Returns a vector containing the name of users that are members of this group. | |
Public Member Functions inherited from cosmos::InfoBase< struct group > | |
| bool | valid () const |
| Returns whether data is present in the object. | |
| void | reset () |
| Zeroes out all data. | |
| const struct group * | raw () const |
| Grants access to the raw underlying data structure. | |
| struct group * | raw () |
Additional Inherited Members | |
Protected Member Functions inherited from cosmos::InfoBase< struct group > | |
| bool | getInfo (std::function< int(struct group **)> get_func, const char *errlabel) |
| Helper to drive the common getter function logic for getpw* and getgr*. | |
Protected Attributes inherited from cosmos::InfoBase< struct group > | |
| bool | m_valid |
| struct group | m_info |
| struct passwd or struct group. | |
| std::vector< char > | m_buf |
| Extra space for storing the dynamic strings in the m_info struct. | |
Group Database Information.
This type obtains and stores data for an individual group account ID as found in the /etc/group database.
Definition at line 22 of file GroupInfo.hxx.
|
explicit |
Obtains GroupInfo for the given group name name.
Definition at line 9 of file GroupInfo.cxx.
|
explicit |
Obtains GroupInfo for the given numerical group id gid.
Definition at line 22 of file GroupInfo.cxx.
|
inline |
| SysStringVector cosmos::GroupInfo::members | ( | ) | const |
Returns a vector containing the name of users that are members of this group.
Definition at line 34 of file GroupInfo.cxx.
|
inline |
|
inline |