nis-util  1.0.D108
Public Types | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes
colon_group_slurp_check Class Reference

#include <check.h>

Inheritance diagram for colon_group_slurp_check:
colon_group_slurp colon_group colon

Public Types

typedef boost::shared_ptr
< colon_group_slurp_check
pointer

Public Member Functions

virtual ~colon_group_slurp_check ()

Static Public Member Functions

static pointer create (const rcstring &filename, const colon_passwd_slurp::pointer &passwd)

Private Member Functions

 colon_group_slurp_check (const rcstring &filename, const colon_passwd_slurp::pointer &passwd)
bool process (const record::pointer &rp)
 colon_group_slurp_check ()
 colon_group_slurp_check (const colon_group_slurp_check &rhs)
colon_group_slurp_checkoperator= (const colon_group_slurp_check &rhs)

Private Attributes

colon_passwd_slurp::pointer passwd

Detailed Description

The colon_group_check class is used to process the group file records, filing each away for later checks.

This checks the file for inter-row validity, and also validates the rows against the passwd file (loaded previosly).

Definition at line 32 of file check.h.


Member Typedef Documentation

Reimplemented from colon_group_slurp.

Definition at line 36 of file check.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 28 of file check.cc.

colon_group_slurp_check::colon_group_slurp_check ( const rcstring filename,
const colon_passwd_slurp::pointer passwd 
) [private]

The constructor. It is private on purpose, use the create class method instead.

Parameters:
filenameThe name of the file to be read
passwdThe etc_passwd map to validate against

Definition at line 33 of file check.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

The create class method is used to create new dynamically allocated instances of this class.

Parameters:
filenameThe name of the file to be read
passwdThe etc_passwd map to validate against

Definition at line 44 of file check.cc.

colon_group_slurp_check& colon_group_slurp_check::operator= ( const colon_group_slurp_check rhs) [private]

The assignment operator. Do not use.

bool colon_group_slurp_check::process ( const record::pointer rp) [private, virtual]

The process method is used to process each record as it is read in by the read_and_process method.

Reimplemented from colon_group_slurp.

Definition at line 52 of file check.cc.


Field Documentation

This is a pointer to the information about the passwd file, needed for various validations.

Definition at line 84 of file check.h.


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