sbuild  1.5.3
Public Types | Public Member Functions | Private Attributes
sbuild::group Class Reference

System group database entry. More...

#include <sbuild-util.h>

+ Collaboration diagram for sbuild::group:

List of all members.

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.

Detailed Description

System group database entry.


Constructor & Destructor Documentation

sbuild::group::group ( gid_t  gid)

The constructor.

Parameters:
gidthe GID to search for.

References clear(), and query_gid().

sbuild::group::group ( const char *  name)

The constructor.

Parameters:
namethe group name to search for.

References clear(), and query_name().

sbuild::group::group ( std::string const &  name)

The constructor.

Parameters:
namethe group name to search for.

References clear(), and query_name().


Member Function Documentation

Clear search result.

The query result is undefined following this operation.

Referenced by group().

+ Here is the caller graph for this function:

void sbuild::group::query_gid ( gid_t  gid)

Query using a GID.

Parameters:
gidthe GID to search for.

Referenced by group().

+ Here is the caller graph for this function:

void sbuild::group::query_name ( const char *  name)

Query using a name.

Parameters:
namethe group name to search for.

Referenced by group().

+ Here is the caller graph for this function:

void sbuild::group::query_name ( std::string const &  name)

Query using a name.

Parameters:
namethe group name to search for.

The documentation for this class was generated from the following files: