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

#include <slurp.h>

Inheritance diagram for space_netid_slurp:
space_netid space

Public Types

typedef boost::shared_ptr
< space_netid_slurp
pointer

Public Member Functions

virtual ~space_netid_slurp ()
void read_and_process (void)

Static Public Member Functions

static pointer create (const rcstring &filename, const colon_passwd_slurp::pointer &passwd, const colon_group_slurp::pointer &grp, const space_hosts_slurp::pointer &ho, const rcstring &domain)

Private Types

typedef std::map< rcstring,
record::pointer
by_name_t

Private Member Functions

 space_netid_slurp (const rcstring &filename, const colon_passwd_slurp::pointer &passwd, const colon_group_slurp::pointer &grp, const space_hosts_slurp::pointer &ho, const rcstring &domain)
void process (const record::pointer &rp)
 space_netid_slurp ()
 space_netid_slurp (const space_netid_slurp &)
space_netid_slurpoperator= (const space_netid_slurp &)

Private Attributes

by_name_t by_name
colon_passwd_slurp::pointer passwd
colon_group_slurp::pointer group
space_hosts_slurp::pointer hosts
rcstring domain

Detailed Description

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

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

Definition at line 34 of file slurp.h.


Member Typedef Documentation

Definition at line 99 of file slurp.h.

typedef boost::shared_ptr<space_netid_slurp> space_netid_slurp::pointer

Reimplemented from space_netid.

Definition at line 38 of file slurp.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 25 of file slurp.cc.

space_netid_slurp::space_netid_slurp ( const rcstring filename,
const colon_passwd_slurp::pointer passwd,
const colon_group_slurp::pointer grp,
const space_hosts_slurp::pointer ho,
const rcstring domain 
) [private]

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

Parameters:
filenameThe name of the file to be read.
passwdThe passwd map to validate against.
grpThe group map to validate against.
hoThe hosts map to validate against.
domainThe domain to validate against.

Definition at line 30 of file slurp.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

space_netid_slurp::pointer space_netid_slurp::create ( const rcstring filename,
const colon_passwd_slurp::pointer passwd,
const colon_group_slurp::pointer grp,
const space_hosts_slurp::pointer ho,
const rcstring domain 
) [static]

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 passwd map to validate against.
grpThe group map to validate against.
hoThe hosts map to validate against.
domainThe domain to validate against.

Definition at line 47 of file slurp.cc.

space_netid_slurp& space_netid_slurp::operator= ( const space_netid_slurp ) [private]

The assignment operator. Do not use.

void space_netid_slurp::process ( const record::pointer rp) [private]

The process method use used to process each record, verifying against the passwd, group and hosts information and previous netid records.

Definition at line 68 of file slurp.cc.

The read_and_process method is used to read the file and process all of the records.

Definition at line 169 of file slurp.cc.


Field Documentation

The by_name instance variable is used to index passwd records by name.

Definition at line 105 of file slurp.h.

The domain instance variable is used to reemmber the NIS domain name we are validating against.

Definition at line 129 of file slurp.h.

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

Definition at line 117 of file slurp.h.

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

Definition at line 123 of file slurp.h.

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

Definition at line 111 of file slurp.h.


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