System passwd database entry.
More...
#include <sbuild-util.h>
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().
| void sbuild::passwd::query_name |
( |
std::string const & |
name |
) |
|
Query using a name.
- Parameters:
-
| name | the user name to search for. |
References query_name().
| void sbuild::passwd::query_name |
( |
const char * |
name |
) |
|
| void sbuild::passwd::query_uid |
( |
uid_t |
uid |
) |
|
Query using a UID.
- Parameters:
-
| uid | the UID to search for. |
References buffer, and valid.
Referenced by passwd().
The documentation for this class was generated from the following files: