sbuild::group Class Reference

System group database entry. More...

#include <sbuild-util.h>

Collaboration diagram for sbuild::group:

Collaboration graph
[legend]

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:
gid the GID to search for.

References clear(), and query_gid().

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

The constructor.

Parameters:
name the group name to search for.

References clear(), and query_name().

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

The constructor.

Parameters:
name the group name to search for.

References clear(), and query_name().


Member Function Documentation

void sbuild::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 sbuild::group::query_gid ( gid_t  gid  ) 

Query using a GID.

Parameters:
gid the GID to search for.

References buffer, group(), and valid.

Referenced by group().

Here is the caller graph for this function:

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

Query using a name.

Parameters:
name the group name to search for.

References buffer, group(), and valid.

Referenced by group(), and query_name().

Here is the caller graph for this function:

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

Query using a name.

Parameters:
name the group name to search for.

References query_name().


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

Generated on Tue Jan 18 21:49:05 2011 for sbuild by  doxygen 1.5.6