sbuild::passwd Class Reference

System passwd database entry. More...

#include <sbuild-util.h>

Collaboration diagram for sbuild::passwd:

Collaboration graph
[legend]

List of all members.

Public Types

typedef std::vector< char > buffer_type
 A buffer for reentrant passwd functions.

Public Member Functions

 passwd ()
 The contructor.
 passwd (uid_t uid)
 The constructor.
 passwd (const char *name)
 The constructor.
 passwd (std::string const &name)
 The constructor.
void clear ()
 Clear search result.
void query_uid (uid_t uid)
 Query using a UID.
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 passwd database entry.

Constructor & Destructor Documentation

sbuild::passwd::passwd ( uid_t  uid  ) 

The constructor.

Parameters:
uid the UID to search for.

References clear(), and query_uid().

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

The constructor.

Parameters:
name the user name to search for.

References clear(), and query_name().

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

The constructor.

Parameters:
name the user name to search for.

References clear(), and query_name().


Member Function Documentation

void sbuild::passwd::clear (  ) 

Clear search result.

The query result is undefined following this operation.

References buffer, and valid.

Referenced by passwd().

Here is the caller graph for this function:

void sbuild::passwd::query_uid ( uid_t  uid  ) 

Query using a UID.

Parameters:
uid the UID to search for.

References buffer, passwd(), and valid.

Referenced by passwd().

Here is the caller graph for this function:

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

Query using a name.

Parameters:
name the user name to search for.

References buffer, passwd(), and valid.

Referenced by passwd(), and query_name().

Here is the caller graph for this function:

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

Query using a name.

Parameters:
name the user name to search for.

References query_name().


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

Generated on Wed Jun 1 08:00:18 2011 for sbuild by  doxygen 1.5.6