GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
octave_passwd Class Reference

#include "oct-passwd.h"

Collaboration diagram for octave_passwd:
Collaboration graph
[legend]

Public Member Functions

 octave_passwd (void)
 octave_passwd (const octave_passwd &pw)
 ~octave_passwd (void)
std::string dir (void) const
std::string gecos (void) const
gid_t gid (void) const
std::string name (void) const
bool ok (void) const
 operator bool () const
octave_passwdoperator= (const octave_passwd &pw)
std::string passwd (void) const
std::string shell (void) const
uid_t uid (void) const

Static Public Member Functions

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

Private Member Functions

 octave_passwd (void *p, std::string &msg)
void gripe_invalid (void) const

Private Attributes

std::string pw_dir
std::string pw_gecos
gid_t pw_gid
std::string pw_name
std::string pw_passwd
std::string pw_shell
uid_t pw_uid
bool valid

Detailed Description

Definition at line 30 of file oct-passwd.h.

Constructor & Destructor Documentation

octave_passwd::octave_passwd ( void  )
inline

Definition at line 36 of file oct-passwd.h.

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

octave_passwd::octave_passwd ( const octave_passwd pw)
inline

Definition at line 41 of file oct-passwd.h.

octave_passwd::~octave_passwd ( void  )
inline

Definition at line 64 of file oct-passwd.h.

octave_passwd::octave_passwd ( void p,
std::string &  msg 
)
private

Definition at line 199 of file oct-passwd.cc.

References NOT_SUPPORTED, passwd(), pw_dir, pw_gecos, pw_gid, pw_name, pw_passwd, pw_shell, pw_uid, and valid.

Member Function Documentation

std::string octave_passwd::dir ( void  ) const
int octave_passwd::endpwent ( void  )
static

Definition at line 180 of file oct-passwd.cc.

Referenced by endpwent(), and Fendpwent().

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

Definition at line 187 of file oct-passwd.cc.

References endpwent(), and NOT_SUPPORTED.

std::string octave_passwd::gecos ( void  ) const

Definition at line 76 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_gecos.

Referenced by mk_pw_map().

octave_passwd octave_passwd::getpwent ( void  )
static

Definition at line 103 of file oct-passwd.cc.

Referenced by Fgetpwent(), and getpwent().

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

Definition at line 110 of file oct-passwd.cc.

References getpwent(), NOT_SUPPORTED, and octave_passwd().

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

Definition at line 141 of file oct-passwd.cc.

Referenced by Fgetpwnam(), getpwnam(), kpse_tilde_expand(), and tilde_expand_word().

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

Definition at line 148 of file oct-passwd.cc.

References getpwnam(), NOT_SUPPORTED, and octave_passwd().

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

Definition at line 129 of file oct-passwd.cc.

References getpwuid(), NOT_SUPPORTED, and octave_passwd().

gid_t octave_passwd::gid ( void  ) const

Definition at line 67 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_gid.

Referenced by mk_pw_map().

void octave_passwd::gripe_invalid ( void  ) const
private

Definition at line 226 of file oct-passwd.cc.

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

std::string octave_passwd::name ( void  ) const

Definition at line 40 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_name.

Referenced by octave_env::do_get_user_name(), and mk_pw_map().

bool octave_passwd::ok ( void  ) const
inline

Definition at line 80 of file oct-passwd.h.

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

octave_passwd::operator bool ( ) const
inline

Definition at line 82 of file oct-passwd.h.

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

Definition at line 47 of file oct-passwd.h.

References pw_dir, pw_gecos, pw_gid, pw_name, pw_passwd, pw_shell, pw_uid, and valid.

std::string octave_passwd::passwd ( void  ) const

Definition at line 49 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_passwd.

Referenced by mk_pw_map(), and octave_passwd().

int octave_passwd::setpwent ( void  )
static

Definition at line 160 of file oct-passwd.cc.

Referenced by Fsetpwent(), and setpwent().

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

Definition at line 167 of file oct-passwd.cc.

References NOT_SUPPORTED, and setpwent().

std::string octave_passwd::shell ( void  ) const

Definition at line 94 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_shell.

Referenced by mk_pw_map().

uid_t octave_passwd::uid ( void  ) const

Definition at line 58 of file oct-passwd.cc.

References gripe_invalid(), ok(), and pw_uid.

Referenced by mk_pw_map().

Member Data Documentation

std::string octave_passwd::pw_dir
private

Definition at line 117 of file oct-passwd.h.

Referenced by dir(), octave_passwd(), and operator=().

std::string octave_passwd::pw_gecos
private

Definition at line 114 of file oct-passwd.h.

Referenced by gecos(), octave_passwd(), and operator=().

gid_t octave_passwd::pw_gid
private

Definition at line 111 of file oct-passwd.h.

Referenced by gid(), octave_passwd(), and operator=().

std::string octave_passwd::pw_name
private

Definition at line 102 of file oct-passwd.h.

Referenced by name(), octave_passwd(), and operator=().

std::string octave_passwd::pw_passwd
private

Definition at line 105 of file oct-passwd.h.

Referenced by octave_passwd(), operator=(), and passwd().

std::string octave_passwd::pw_shell
private

Definition at line 120 of file oct-passwd.h.

Referenced by octave_passwd(), operator=(), and shell().

uid_t octave_passwd::pw_uid
private

Definition at line 108 of file oct-passwd.h.

Referenced by octave_passwd(), operator=(), and uid().

bool octave_passwd::valid
private

Definition at line 123 of file oct-passwd.h.

Referenced by octave_passwd(), and operator=().


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