nis-util
1.0.D108
|
#include <group_closure.h>
Public Member Functions | |
virtual | ~colon_passwd_functor_group_closure () |
colon_passwd_functor_group_closure (const colon_group_slurp::pointer &grp) | |
void | operator() (const colon_passwd::record::pointer &rp) |
Private Member Functions | |
void | error (const source_location &locn, const char *fmt,...) ATTRIBUTE_PRINTF(3 |
colon_passwd_functor_group_closure () | |
colon_passwd_functor_group_closure (const colon_passwd_functor_group_closure &) | |
colon_passwd_functor_group_closure & | operator= (const colon_passwd_functor_group_closure &) |
Private Attributes | |
colon_group_slurp::pointer | groups |
void int | error_count |
The colon_passwd_functor_group_closure class is used to represent the processing required to supplement each group with those members that are implied by each user's default gid.
Definition at line 31 of file group_closure.h.
The destructor.
Definition at line 27 of file group_closure.cc.
colon_passwd_functor_group_closure::colon_passwd_functor_group_closure | ( | const colon_group_slurp::pointer & | grp | ) |
The constructor.
Definition at line 41 of file group_closure.cc.
The default constructor. Do not use.
colon_passwd_functor_group_closure::colon_passwd_functor_group_closure | ( | const colon_passwd_functor_group_closure & | ) | [private] |
The copy constructor. Do not use.
void colon_passwd_functor_group_closure::error | ( | const source_location & | locn, |
const char * | fmt, | ||
... | |||
) | [private] |
The error function is used to report errors. The destructor exit(EXIT_FAILURE) if any errors are reported.
locn | The source file location of the error |
fmt | The format of the erros, as well and the type and number of the variable arguments. |
Definition at line 51 of file group_closure.cc.
void colon_passwd_functor_group_closure::operator() | ( | const colon_passwd::record::pointer & | rp | ) | [virtual] |
The operation to be applied. It looks like a function call, that's why it's called a functor.
rp | pointer to the password record to be processed |
Implements colon_passwd_functor.
Definition at line 69 of file group_closure.cc.
colon_passwd_functor_group_closure& colon_passwd_functor_group_closure::operator= | ( | const colon_passwd_functor_group_closure & | ) | [private] |
The assignment operator. Do not use.
void int colon_passwd_functor_group_closure::error_count [private] |
The error_count instance variable is used to remember the number of error seen so far.
Definition at line 66 of file group_closure.h.
The groups instance variable is used to remember where to obtain information about groups.
Definition at line 53 of file group_closure.h.