GNU Octave  4.2.1
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::sys::group Class Reference

#include "oct-group.h"

Collaboration diagram for octave::sys::group:
Collaboration graph
[legend]

Public Member Functions

 group (void)
 
 group (const group &gr)
 
gid_t gid (void) const
 
string_vector mem (void) const
 
std::string name (void) const
 
bool ok (void) const
 
 operator bool () const
 
groupoperator= (const group &gr)
 
std::string passwd (void) const
 

Static Public Member Functions

static int endgrent (void)
 
static int endgrent (std::string &msg)
 
static group getgrent (void)
 
static group getgrent (std::string &msg)
 
static group getgrgid (gid_t gid)
 
static group getgrgid (gid_t gid, std::string &msg)
 
static group getgrnam (const std::string &nm)
 
static group getgrnam (const std::string &nm, std::string &msg)
 
static int setgrent (void)
 
static int setgrent (std::string &msg)
 

Private Member Functions

 group (void *p, std::string &msg)
 

Private Attributes

gid_t m_gid
 
string_vector m_mem
 
std::string m_name
 
std::string m_passwd
 
bool valid
 

Detailed Description

Definition at line 38 of file oct-group.h.

Constructor & Destructor Documentation

octave::sys::group::group ( void  )
inline

Definition at line 44 of file oct-group.h.

Referenced by getgrent(), getgrgid(), and getgrnam().

octave::sys::group::group ( const group gr)
inline

Definition at line 48 of file oct-group.h.

octave::sys::group::group ( void *  p,
std::string msg 
)
private

Definition at line 184 of file oct-group.cc.

References k, m_gid, m_mem, m_name, m_passwd, NOT_SUPPORTED, p, string_vector::resize(), struct(), tmp, and valid.

Member Function Documentation

int octave::sys::group::endgrent ( void  )
static

Definition at line 165 of file oct-group.cc.

References string.

Referenced by endgrent().

int octave::sys::group::endgrent ( std::string msg)
static

Definition at line 172 of file oct-group.cc.

References endgrent(), and NOT_SUPPORTED.

group octave::sys::group::getgrent ( void  )
static

Definition at line 88 of file oct-group.cc.

References string.

Referenced by getgrent().

group octave::sys::group::getgrent ( std::string msg)
static

Definition at line 95 of file oct-group.cc.

References getgrent(), group(), and NOT_SUPPORTED.

group octave::sys::group::getgrgid ( gid_t  gid)
static

Definition at line 107 of file oct-group.cc.

References string.

Referenced by getgrgid().

group octave::sys::group::getgrgid ( gid_t  gid,
std::string msg 
)
static

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

References getgrgid(), group(), and NOT_SUPPORTED.

group octave::sys::group::getgrnam ( const std::string nm)
static

Definition at line 126 of file oct-group.cc.

References string.

Referenced by getgrnam().

group octave::sys::group::getgrnam ( const std::string nm,
std::string msg 
)
static

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

References getgrnam(), group(), and NOT_SUPPORTED.

gid_t octave::sys::group::gid ( void  ) const

Definition at line 70 of file oct-group.cc.

References err_invalid(), m_gid, and ok().

Referenced by mk_gr_map().

string_vector octave::sys::group::mem ( void  ) const

Definition at line 79 of file oct-group.cc.

References err_invalid(), m_mem, and ok().

Referenced by mk_gr_map().

std::string octave::sys::group::name ( void  ) const

Definition at line 52 of file oct-group.cc.

References err_invalid(), m_name, and ok().

Referenced by mk_gr_map().

bool octave::sys::group::ok ( void  ) const
inline

Definition at line 75 of file oct-group.h.

Referenced by gid(), mem(), name(), and passwd().

octave::sys::group::operator bool ( ) const
inline

Definition at line 77 of file oct-group.h.

group& octave::sys::group::operator= ( const group gr)
inline

Definition at line 53 of file oct-group.h.

References m_gid, m_mem, m_name, m_passwd, and valid.

std::string octave::sys::group::passwd ( void  ) const

Definition at line 61 of file oct-group.cc.

References err_invalid(), m_passwd, and ok().

Referenced by mk_gr_map().

int octave::sys::group::setgrent ( void  )
static

Definition at line 145 of file oct-group.cc.

References string.

Referenced by setgrent().

int octave::sys::group::setgrent ( std::string msg)
static

Definition at line 152 of file oct-group.cc.

References NOT_SUPPORTED, and setgrent().

Member Data Documentation

gid_t octave::sys::group::m_gid
private

Definition at line 103 of file oct-group.h.

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

string_vector octave::sys::group::m_mem
private

Definition at line 106 of file oct-group.h.

Referenced by group(), mem(), and operator=().

std::string octave::sys::group::m_name
private

Definition at line 97 of file oct-group.h.

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

std::string octave::sys::group::m_passwd
private

Definition at line 100 of file oct-group.h.

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

bool octave::sys::group::valid
private

Definition at line 109 of file oct-group.h.

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


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