Skip to content

iox::posix::PosixUser🔗

Public Types🔗

Name
using cxx::vector< PosixGroup, MaxNumberOfGroups > groupVector_t
using cxx::string< 100 > string_t

Public Functions🔗

Name
PosixUser(const uid_t f_id)
PosixUser(const string_t & f_name)
groupVector_t getGroups() const
string_t getName() const
uid_t getID() const
bool doesExist() const
PosixUser getUserOfCurrentProcess()
cxx::optional< uid_t > getUserID(const string_t & f_name)
cxx::optional< string_t > getUserName(uid_t f_id)

Public Types Documentation🔗

using groupVector_t🔗

using iox::posix::PosixUser::groupVector_t =  cxx::vector<PosixGroup, MaxNumberOfGroups>;

using string_t🔗

using iox::posix::PosixUser::string_t =  cxx::string<100>;

Public Functions Documentation🔗

function PosixUser🔗

explicit PosixUser(
    const uid_t f_id
)

function PosixUser🔗

explicit PosixUser(
    const string_t & f_name
)

function getGroups🔗

groupVector_t getGroups() const

function getName🔗

string_t getName() const

function getID🔗

uid_t getID() const

function doesExist🔗

bool doesExist() const

function getUserOfCurrentProcess🔗

static PosixUser getUserOfCurrentProcess()

function getUserID🔗

static cxx::optional< uid_t > getUserID(
    const string_t & f_name
)

function getUserName🔗

static cxx::optional< string_t > getUserName(
    uid_t f_id
)

Updated on 31 May 2022 at 11:34:55 CEST