UserInfo Struct Reference
Data about a given user and queries therefore. If the queries fail -- such as when a specified user id is invalid, the name_ will be an emtpy string. Otherwise, the data should be valid.
More...
#include <user.h>
List of all members.
Static Public Member Functions |
static UserInfo | get (std::string const &s) |
| get info for named user
|
static UserInfo | get (char const *) |
| get info for named user
|
static UserInfo | get (long user) |
| get info for a specified user
|
static UserInfo | get () |
| get this program's user id information
|
Public Attributes |
long | gid_ |
| group id number
|
std::string | home_dir_ |
| home directory
|
std::string | name_ |
| user id name
|
std::string | password_ |
| not in human readable form, may be empty
|
std::string | shell_ |
| name of favorite command shell
|
long | uid_ |
| user id number
|
Detailed Description
Data about a given user and queries therefore. If the queries fail -- such as when a specified user id is invalid, the name_ will be an emtpy string. Otherwise, the data should be valid.
Definition at line 43 of file user.h.
Member Function Documentation
static UserInfo get |
( |
std::string const & |
s |
) |
[static] |
get info for named user
Definition at line 62 of file user.h.
UserInfo get |
( |
char const * |
user |
) |
[static] |
get info for named user
Definition at line 108 of file user.cxx.
get info for a specified user
Definition at line 55 of file user.cxx.
get this program's user id information
Definition at line 166 of file user.cxx.
Member Data Documentation
group id number
Definition at line 56 of file user.h.
home directory
Definition at line 53 of file user.h.
user id name
Definition at line 51 of file user.h.
not in human readable form, may be empty
Definition at line 52 of file user.h.
name of favorite command shell
Definition at line 54 of file user.h.
user id number
Definition at line 55 of file user.h.
The documentation for this struct was generated from the following files: