GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
password Class Reference

#include "oct-password.h"

Public Member Functions

 password ()
 
 password (const password &pw)
 
 ~password ()=default
 
std::string dir () const
 
std::string gecos () const
 
gid_t gid () const
 
std::string name () const
 
bool ok () const
 
 operator bool () const
 
passwordoperator= (const password &pw)
 
std::string passwd () const
 
std::string shell () const
 
uid_t uid () const
 

Static Public Member Functions

static int endpwent ()
 
static int endpwent (std::string &msg)
 
static password getpwent ()
 
static password getpwent (std::string &msg)
 
static password getpwnam (const std::string &nm)
 
static password getpwnam (const std::string &nm, std::string &msg)
 
static password getpwuid (uid_t uid)
 
static password getpwuid (uid_t uid, std::string &msg)
 
static int setpwent ()
 
static int setpwent (std::string &msg)
 

Detailed Description

Definition at line 39 of file oct-password.h.

Constructor & Destructor Documentation

◆ password() [1/2]

password::password ( )
inline

Definition at line 45 of file oct-password.h.

Referenced by getpwent(), getpwnam(), and getpwuid().

◆ password() [2/2]

password::password ( const password pw)
inline

Definition at line 50 of file oct-password.h.

◆ ~password()

password::~password ( )
default

Member Function Documentation

◆ dir()

std::string password::dir ( ) const

Definition at line 96 of file oct-password.cc.

References ok().

◆ endpwent() [1/2]

int password::endpwent ( )
static

Definition at line 195 of file oct-password.cc.

◆ endpwent() [2/2]

int password::endpwent ( std::string &  msg)
static

Definition at line 202 of file oct-password.cc.

References NOT_SUPPORTED, and octave_endpwent_wrapper().

◆ gecos()

std::string password::gecos ( ) const

Definition at line 87 of file oct-password.cc.

References ok().

◆ getpwent() [1/2]

password password::getpwent ( )
static

Definition at line 114 of file oct-password.cc.

◆ getpwent() [2/2]

password password::getpwent ( std::string &  msg)
static

Definition at line 121 of file oct-password.cc.

References password(), NOT_SUPPORTED, and octave_getpwent_wrapper().

◆ getpwnam() [1/2]

password password::getpwnam ( const std::string &  nm)
static

Definition at line 154 of file oct-password.cc.

◆ getpwnam() [2/2]

password password::getpwnam ( const std::string &  nm,
std::string &  msg 
)
static

Definition at line 161 of file oct-password.cc.

References password(), NOT_SUPPORTED, and octave_getpwnam_wrapper().

◆ getpwuid() [1/2]

password password::getpwuid ( uid_t  uid)
static

Definition at line 133 of file oct-password.cc.

References uid().

◆ getpwuid() [2/2]

password password::getpwuid ( uid_t  uid,
std::string &  msg 
)
static

Definition at line 140 of file oct-password.cc.

References password(), NOT_SUPPORTED, octave_getpwuid_wrapper(), and uid().

◆ gid()

gid_t password::gid ( ) const

Definition at line 78 of file oct-password.cc.

References ok().

◆ name()

std::string password::name ( ) const

Definition at line 51 of file oct-password.cc.

References ok().

◆ ok()

bool password::ok ( ) const
inline

Definition at line 89 of file oct-password.h.

Referenced by dir(), gecos(), gid(), name(), passwd(), shell(), and uid().

◆ operator bool()

password::operator bool ( ) const
inline

Definition at line 91 of file oct-password.h.

◆ operator=()

password& password::operator= ( const password pw)
inline

Definition at line 56 of file oct-password.h.

◆ passwd()

std::string password::passwd ( ) const

Definition at line 60 of file oct-password.cc.

References ok().

◆ setpwent() [1/2]

int password::setpwent ( )
static

Definition at line 175 of file oct-password.cc.

◆ setpwent() [2/2]

int password::setpwent ( std::string &  msg)
static

Definition at line 182 of file oct-password.cc.

References NOT_SUPPORTED, and octave_setpwent_wrapper().

◆ shell()

std::string password::shell ( ) const

Definition at line 105 of file oct-password.cc.

References ok().

◆ uid()

uid_t password::uid ( ) const

Definition at line 69 of file oct-password.cc.

References ok().

Referenced by getpwuid().


The documentation for this class was generated from the following files: