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

#include "oct-group.h"

Public Member Functions

 group ()
 
gid_t gid () const
 
string_vector mem () const
 
std::string name () const
 
bool ok () const
 
 operator bool () const
 
std::string passwd () const
 

Static Public Member Functions

static int endgrent ()
 
static int endgrent (std::string &msg)
 
static group getgrent ()
 
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 ()
 
static int setgrent (std::string &msg)
 

Detailed Description

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

Constructor & Destructor Documentation

◆ group()

group::group ( )
inline

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

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

Member Function Documentation

◆ endgrent() [1/2]

int group::endgrent ( )
static

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

Referenced by endgrent().

◆ endgrent() [2/2]

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

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

References endgrent(), and NOT_SUPPORTED.

◆ getgrent() [1/2]

group group::getgrent ( )
static

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

Referenced by getgrent().

◆ getgrent() [2/2]

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

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

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

◆ getgrgid() [1/2]

group group::getgrgid ( gid_t  gid)
static

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

References gid().

Referenced by getgrgid().

◆ getgrgid() [2/2]

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

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

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

◆ getgrnam() [1/2]

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

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

Referenced by getgrnam().

◆ getgrnam() [2/2]

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

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

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

◆ gid()

gid_t group::gid ( ) const

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

References ok().

Referenced by getgrgid().

◆ mem()

string_vector group::mem ( ) const

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

References ok().

◆ name()

std::string group::name ( ) const

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

References ok().

◆ ok()

bool group::ok ( ) const
inline

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

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

◆ operator bool()

group::operator bool ( ) const
inline

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

◆ passwd()

std::string group::passwd ( ) const

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

References ok().

◆ setgrent() [1/2]

int group::setgrent ( )
static

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

Referenced by setgrent().

◆ setgrent() [2/2]

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

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

References NOT_SUPPORTED, and setgrent().


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