User account information of the underlying OS.
More...
#include <user_info.hpp>
|
| UserInfo () noexcept |
| Create instance of the user executing this application.
|
|
| UserInfo (const std::string &username) noexcept |
| Create instance of the given user name.
|
|
| UserInfo (id_t uid) noexcept |
| Create instance of the given user id.
|
|
id_t | gid () const noexcept |
|
const std::vector< id_t > & | groups () const noexcept |
|
const std::string & | homedir () const noexcept |
|
bool | isValid () const noexcept |
|
const std::string & | shell () const noexcept |
|
std::string | toString () const noexcept |
|
id_t | uid () const noexcept |
|
const std::string & | username () const noexcept |
|
User account information of the underlying OS.
Definition at line 42 of file user_info.hpp.
◆ id_t
◆ UserInfo() [1/3]
Create instance of the user executing this application.
Definition at line 191 of file user_info.cpp.
◆ UserInfo() [2/3]
UserInfo::UserInfo |
( |
id_t | uid | ) |
|
|
noexcept |
Create instance of the given user id.
Definition at line 198 of file user_info.cpp.
◆ UserInfo() [3/3]
UserInfo::UserInfo |
( |
const std::string & | username | ) |
|
|
noexcept |
Create instance of the given user name.
Definition at line 206 of file user_info.cpp.
◆ isValid()
bool jau::os::UserInfo::isValid |
( |
| ) |
const |
|
inlinenoexcept |
◆ uid()
id_t jau::os::UserInfo::uid |
( |
| ) |
const |
|
inlinenoexcept |
◆ gid()
id_t jau::os::UserInfo::gid |
( |
| ) |
const |
|
inlinenoexcept |
◆ username()
const std::string & jau::os::UserInfo::username |
( |
| ) |
const |
|
inlinenoexcept |
◆ homedir()
const std::string & jau::os::UserInfo::homedir |
( |
| ) |
const |
|
inlinenoexcept |
◆ shell()
const std::string & jau::os::UserInfo::shell |
( |
| ) |
const |
|
inlinenoexcept |
◆ groups()
const std::vector< id_t > & jau::os::UserInfo::groups |
( |
| ) |
const |
|
inlinenoexcept |
◆ toString()
std::string jau::os::UserInfo::toString |
( |
| ) |
const |
|
inlinenoexcept |
The documentation for this class was generated from the following files: