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>

Collaboration diagram for UserInfo:
Collaboration graph
[legend]

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.

UserInfo get ( long  user  )  [static]

get info for a specified user

Definition at line 55 of file user.cxx.

UserInfo get (  )  [static]

get this program's user id information

Definition at line 166 of file user.cxx.

Here is the caller graph for this function:


Member Data Documentation

long gid_

group id number

Definition at line 56 of file user.h.

std::string home_dir_

home directory

Definition at line 53 of file user.h.

std::string name_

user id name

Definition at line 51 of file user.h.

std::string password_

not in human readable form, may be empty

Definition at line 52 of file user.h.

std::string shell_

name of favorite command shell

Definition at line 54 of file user.h.

long uid_

user id number

Definition at line 55 of file user.h.


The documentation for this struct was generated from the following files:
Generated on Wed Feb 29 22:57:46 2012 for CXXUtilities by  doxygen 1.6.3