nis-util  1.0.D108
Public Member Functions | Private Member Functions | Private Attributes
colon_passwd_functor_group_closure Class Reference

#include <group_closure.h>

Inheritance diagram for colon_passwd_functor_group_closure:
colon_passwd_functor

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_closureoperator= (const colon_passwd_functor_group_closure &)

Private Attributes

colon_group_slurp::pointer groups
void int error_count

Detailed Description

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.


Constructor & Destructor Documentation

The destructor.

Definition at line 27 of file group_closure.cc.

The constructor.

Definition at line 41 of file group_closure.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

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.

Parameters:
locnThe source file location of the error
fmtThe 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.

Parameters:
rppointer 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.


Field Documentation

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.


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