37 User(uid_t user_id) throw() ;
40 operator uid_t() const throw() ;
41 operator
std::
string() const ;
42 operator const
char *() const ;
44 const
std::
string &
name() const ;
46 const
std::
string &
home() const ;
void resolve() const
resolve information from user-id
void resolve_safe() const
resolve without throwing exceptions
static const User ROOT
constant for root user
const std::string & name() const
username
uid_t identity() const
user-id
const std::string & home() const
home directory name
std::string m_user_real_name
cached real user name
const std::string & real_name() const
real name
uid_t m_user_id
the actual user id
const std::string & name_safe() const
username - no exception
void setuid() const
tries to set the uid of current process
std::string m_user_home
cached user home directory
std::string m_user_name
cached user name