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_group Class Reference

#include "oct-group.h"

Collaboration diagram for octave_group:
Collaboration graph
[legend]

Public Member Functions

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

Static Public Member Functions

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

Private Member Functions

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

Private Attributes

gid_t gr_gid
string_vector gr_mem
std::string gr_name
std::string gr_passwd
bool valid

Detailed Description

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

Constructor & Destructor Documentation

octave_group::octave_group ( void  )
inline

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

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

octave_group::octave_group ( const octave_group gr)
inline

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

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

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

References gr_gid, gr_mem, gr_name, gr_passwd, NOT_SUPPORTED, string_vector::resize(), and valid.

Member Function Documentation

int octave_group::endgrent ( void  )
static

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

Referenced by endgrent(), and Fendgrent().

int octave_group::endgrent ( std::string &  msg)
static

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

References endgrent(), and NOT_SUPPORTED.

octave_group octave_group::getgrent ( void  )
static

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

Referenced by Fgetgrent(), and getgrent().

octave_group octave_group::getgrent ( std::string &  msg)
static

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

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

octave_group octave_group::getgrgid ( gid_t  gid)
static

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

Referenced by Fgetgrgid(), and getgrgid().

octave_group octave_group::getgrgid ( gid_t  gid,
std::string &  msg 
)
static

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

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

octave_group octave_group::getgrnam ( const std::string &  nm)
static

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

Referenced by Fgetgrnam(), and getgrnam().

octave_group octave_group::getgrnam ( const std::string &  nm,
std::string &  msg 
)
static

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

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

gid_t octave_group::gid ( void  ) const

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

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

Referenced by mk_gr_map().

void octave_group::gripe_invalid ( void  ) const
private

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

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

string_vector octave_group::mem ( void  ) const

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

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

Referenced by mk_gr_map().

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

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

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

Referenced by mk_gr_map(), and xilaenv().

bool octave_group::ok ( void  ) const
inline

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

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

octave_group::operator bool ( ) const
inline

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

octave_group& octave_group::operator= ( const octave_group gr)
inline

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

References gr_gid, gr_mem, gr_name, gr_passwd, and valid.

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

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

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

Referenced by mk_gr_map().

int octave_group::setgrent ( void  )
static

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

Referenced by Fsetgrent(), and setgrent().

int octave_group::setgrent ( std::string &  msg)
static

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

References NOT_SUPPORTED, and setgrent().

Member Data Documentation

gid_t octave_group::gr_gid
private

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

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

string_vector octave_group::gr_mem
private

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

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

std::string octave_group::gr_name
private

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

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

std::string octave_group::gr_passwd
private

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

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

bool octave_group::valid
private

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

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


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