sbuild 1.4.23
|
System group database entry. More...
#include <sbuild-util.h>
Public Types | |
typedef std::vector< char > | buffer_type |
A buffer for reentrant group functions. | |
Public Member Functions | |
group () | |
The constructor. | |
group (gid_t gid) | |
The constructor. | |
group (const char *name) | |
The constructor. | |
group (std::string const &name) | |
The constructor. | |
void | clear () |
Clear search result. | |
void | query_gid (gid_t gid) |
Query using a GID. | |
void | query_name (const char *name) |
Query using a name. | |
void | query_name (std::string const &name) |
Query using a name. | |
bool | operator! () const |
Check if the query result is valid. | |
Private Attributes | |
buffer_type | buffer |
Query result buffer. | |
bool | valid |
Object validity. |
System group database entry.
sbuild::group::group | ( | gid_t | gid | ) |
sbuild::group::group | ( | const char * | name | ) |
The constructor.
name | the group name to search for. |
References clear(), and query_name().
sbuild::group::group | ( | std::string const & | name | ) |
The constructor.
name | the group name to search for. |
References clear(), and query_name().
void sbuild::group::clear | ( | ) |
Clear search result.
The query result is undefined following this operation.
Referenced by group().
void sbuild::group::query_gid | ( | gid_t | gid | ) |
Query using a GID.
gid | the GID to search for. |
Referenced by group().
void sbuild::group::query_name | ( | const char * | name | ) |
Query using a name.
name | the group name to search for. |
Referenced by group().
void sbuild::group::query_name | ( | std::string const & | name | ) |
Query using a name.
name | the group name to search for. |