MySQL  8.0.27
Source Code Documentation
PasswdValue Struct Reference

Shadow struct for passwd which has proper value semantics, so that it can be safely copied and assigned to. More...

#include <my_getpwnam.h>

Public Member Functions

 PasswdValue (const passwd &p)
 Constructs from a passwd instance. More...
 
 PasswdValue ()=default
 Default constructor creates a void value. More...
 
bool IsVoid () const
 Returns true if this PasswdValue instance does not represent a real passwd entry. More...
 

Public Attributes

std::string pw_name
 
std::string pw_passwd
 
uid_t pw_uid {0}
 
gid_t pw_gid {0}
 
std::string pw_gecos
 
std::string pw_dir
 
std::string pw_shell
 

Detailed Description

Shadow struct for passwd which has proper value semantics, so that it can be safely copied and assigned to.

Constructor & Destructor Documentation

◆ PasswdValue() [1/2]

PasswdValue::PasswdValue ( const passwd &  p)
inline

Constructs from a passwd instance.

◆ PasswdValue() [2/2]

PasswdValue::PasswdValue ( )
default

Default constructor creates a void value.

Member Function Documentation

◆ IsVoid()

bool PasswdValue::IsVoid ( ) const
inline

Returns true if this PasswdValue instance does not represent a real passwd entry.

Member Data Documentation

◆ pw_dir

std::string PasswdValue::pw_dir

◆ pw_gecos

std::string PasswdValue::pw_gecos

◆ pw_gid

gid_t PasswdValue::pw_gid {0}

◆ pw_name

std::string PasswdValue::pw_name

◆ pw_passwd

std::string PasswdValue::pw_passwd

◆ pw_shell

std::string PasswdValue::pw_shell

◆ pw_uid

uid_t PasswdValue::pw_uid {0}

The documentation for this struct was generated from the following file: