nis-util
1.0.D108
|
#include <slurp.h>
The colon_passwd_slurp class is used to represent the contents of the passwd file, indexed by name and uid.
typedef std::map<rcstring, record::pointer> colon_passwd_slurp::by_home_t [private] |
typedef std::map<rcstring, record::pointer> colon_passwd_slurp::by_name_t [private] |
typedef std::map<rcstring, record::pointer> colon_passwd_slurp::by_uid_t [private] |
typedef boost::shared_ptr<colon_passwd_slurp> colon_passwd_slurp::pointer |
Reimplemented from colon_passwd.
Reimplemented in colon_passwd_slurp_check.
colon_passwd_slurp::~colon_passwd_slurp | ( | ) | [virtual] |
colon_passwd_slurp::colon_passwd_slurp | ( | const rcstring & | filename | ) | [protected] |
colon_passwd_slurp::colon_passwd_slurp | ( | ) | [private] |
The default constructor. Do not use.
colon_passwd_slurp::colon_passwd_slurp | ( | const colon_passwd_slurp & | ) | [private] |
The copy constructor. Do not use.
colon_passwd_slurp::pointer colon_passwd_slurp::create | ( | const rcstring & | filename | ) | [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. |
Reimplemented from colon_passwd.
colon_passwd_slurp& colon_passwd_slurp::operator= | ( | const colon_passwd_slurp & | ) | [private] |
The assignment operator. Do not use.
bool colon_passwd_slurp::process | ( | const record::pointer & | rp | ) | [protected, virtual] |
The process method use used to process each record, verifying against the group information and previous passwd records.
Reimplemented in colon_passwd_slurp_check.
record::pointer colon_passwd_slurp::query_by_home | ( | const rcstring & | home | ) | const |
The query_by_home method may be used to look up a user by her home directory, once the read_and_process method has been called.
colon_passwd::record::pointer colon_passwd_slurp::query_by_name | ( | const rcstring & | name | ) | const |
The query_by_name method may be used to look up users by name, once the read_and_process method has been called.
colon_passwd::record::pointer colon_passwd_slurp::query_by_uid | ( | const rcstring & | uid | ) | const |
The query_by_uid method may be used to look up users by uid, once the read_and_process method has been called.
colon_passwd::record::pointer colon_passwd_slurp::query_by_uid | ( | long | uid | ) | const |
The query_by_uid method may be used to look up users by uid, once the read_and_process method has been called.
void colon_passwd_slurp::read_and_process | ( | void | ) | [virtual] |
void colon_passwd_slurp::walk | ( | colon_passwd_functor & | func | ) | const |
by_home_t colon_passwd_slurp::by_home [private] |
by_name_t colon_passwd_slurp::by_name [private] |
by_uid_t colon_passwd_slurp::by_uid [private] |