nis-util
1.0.D108
|
#include <slurp.h>
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_slurp & | operator= (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 |
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).
typedef std::map<rcstring, record::pointer> space_netid_slurp::by_name_t [private] |
typedef boost::shared_ptr<space_netid_slurp> space_netid_slurp::pointer |
Reimplemented from space_netid.
space_netid_slurp::~space_netid_slurp | ( | ) | [virtual] |
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.
filename | The name of the file to be read. |
passwd | The passwd map to validate against. |
grp | The group map to validate against. |
ho | The hosts map to validate against. |
domain | The domain to validate against. |
space_netid_slurp::space_netid_slurp | ( | ) | [private] |
The default constructor. Do not use.
space_netid_slurp::space_netid_slurp | ( | const space_netid_slurp & | ) | [private] |
The copy constructor. Do not use.
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.
filename | The name of the file to be read. |
passwd | The passwd map to validate against. |
grp | The group map to validate against. |
ho | The hosts map to validate against. |
domain | The domain to validate against. |
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] |
void space_netid_slurp::read_and_process | ( | void | ) |
by_name_t space_netid_slurp::by_name [private] |
rcstring space_netid_slurp::domain [private] |