nis-util
1.0.D108
|
#include <slurp.h>
The space_netgroup_slurp class is used to represent the contents of a netgroup file. Use for generating maps or verifying other maps.
typedef std::map<rcstring, name_list_t> space_netgroup_slurp::by_host_t [private] |
typedef std::map<rcstring, record::pointer> space_netgroup_slurp::by_name_t [private] |
typedef std::map<rcstring, name_list_t> space_netgroup_slurp::by_user_t [private] |
typedef std::vector<rcstring> space_netgroup_slurp::name_list_t |
typedef boost::shared_ptr<space_netgroup_slurp> space_netgroup_slurp::pointer |
Reimplemented from space_netgroup.
space_netgroup_slurp::~space_netgroup_slurp | ( | ) | [virtual] |
space_netgroup_slurp::space_netgroup_slurp | ( | const rcstring & | filename, |
const space_hosts_slurp::pointer & | hosts, | ||
const colon_passwd_slurp::pointer & | passwd | ||
) | [private] |
space_netgroup_slurp::space_netgroup_slurp | ( | ) | [private] |
The default constructor. Do not use.
space_netgroup_slurp::space_netgroup_slurp | ( | const space_netgroup_slurp & | rhs | ) | [private] |
The copy constructor. Do not use.
space_netgroup_slurp::pointer space_netgroup_slurp::create | ( | const rcstring & | filename | ) | [static] |
The create class method is used to create new dynamically allocated instance of this class.
filename | The name of the file to be read. |
Reimplemented from space_netgroup.
space_netgroup_slurp::pointer space_netgroup_slurp::create | ( | const rcstring & | filename, |
const space_hosts_slurp::pointer & | hosts, | ||
const colon_passwd_slurp::pointer & | passwd | ||
) | [static] |
space_netgroup_slurp& space_netgroup_slurp::operator= | ( | const space_netgroup_slurp & | rhs | ) | [private] |
The assignment operator. Do not use.
void space_netgroup_slurp::process | ( | const record::pointer & | rp | ) | [private] |
The process method is used by the read_and_process method to process reach record.
space_netgroup_slurp::name_list_t space_netgroup_slurp::query_by_host | ( | const rcstring & | key | ) | const |
The query_by_host method is used to fetch a list of names of netgroups which contain the given host. It returns the NULL pointer if the named host is not mentioned in any netgroup.
key | the name of a host |
space_netgroup::record::pointer space_netgroup_slurp::query_by_name | ( | const rcstring & | key | ) | const |
space_netgroup_slurp::name_list_t space_netgroup_slurp::query_by_user | ( | const rcstring & | key | ) | const |
The query_by_user method is used to fetch a list of names of netgroups which contain the given user. It returns the NULL pointer if the named user is not mentioned in any netgroup.
key | the name of the user to look for |
void space_netgroup_slurp::read_and_process | ( | void | ) |
by_host_t space_netgroup_slurp::by_host [private] |
by_name_t space_netgroup_slurp::by_name [private] |
by_user_t space_netgroup_slurp::by_user [private] |