sbuild  1.7.1
Public Types | Public Member Functions | Private Attributes | List of all members
sbuild::group Class Reference

System group database entry. More...

#include <util.h>

+ Inheritance diagram for sbuild::group:
+ Collaboration diagram for sbuild::group:

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. More...
 
 group (const char *name)
 The constructor. More...
 
 group (const std::string &name)
 The constructor. More...
 
void clear ()
 Clear search result. More...
 
void query_gid (gid_t gid)
 Query using a GID. More...
 
void query_name (const char *name)
 Query using a name. More...
 
void query_name (const std::string &name)
 Query using a name. More...
 
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

group::group ( gid_t  gid)

The constructor.

Parameters
gidthe GID to search for.

References clear(), and query_gid().

group::group ( const char *  name)

The constructor.

Parameters
namethe group name to search for.

References clear(), and query_name().

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

The constructor.

Parameters
namethe group name to search for.

References clear(), and query_name().

Member Function Documentation

void group::clear ( )

Clear search result.

The query result is undefined following this operation.

References buffer, and valid.

Referenced by group().

+ Here is the caller graph for this function:

void group::query_gid ( gid_t  gid)

Query using a GID.

Parameters
gidthe GID to search for.

References buffer, and valid.

Referenced by group().

+ Here is the caller graph for this function:

void group::query_name ( const char *  name)

Query using a name.

Parameters
namethe group name to search for.

References buffer, and valid.

Referenced by group(), and query_name().

+ Here is the caller graph for this function:

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

Query using a name.

Parameters
namethe group name to search for.

References query_name().


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