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

System passwd database entry. More...

#include <util.h>

+ Inheritance diagram for sbuild::passwd:
+ Collaboration diagram for sbuild::passwd:

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

Constructor & Destructor Documentation

passwd::passwd ( uid_t  uid)

The constructor.

Parameters
uidthe UID to search for.

References clear(), and query_uid().

passwd::passwd ( const char *  name)

The constructor.

Parameters
namethe user name to search for.

References clear(), and query_name().

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

The constructor.

Parameters
namethe user name to search for.

References clear(), and query_name().

Member Function Documentation

void 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 passwd::query_name ( const char *  name)

Query using a name.

Parameters
namethe user name to search for.

References buffer, and valid.

Referenced by passwd(), and query_name().

+ Here is the caller graph for this function:

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

Query using a name.

Parameters
namethe user name to search for.

References query_name().

void passwd::query_uid ( uid_t  uid)

Query using a UID.

Parameters
uidthe UID to search for.

References buffer, and valid.

Referenced by passwd().

+ Here is the caller graph for this function:


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