nis-util
1.0.D108
|
#include <slurp.h>
The space_ethers_slurp class is used to process the ethers file records, filing each away for later checks.
This checks the file for inter-row validity, and also validates the rows against the hosts file (loaded previosly).
typedef std::map<rcstring, record::pointer> space_ethers_slurp::by_addr_t [private] |
typedef std::map<rcstring, record::pointer> space_ethers_slurp::by_ip_addr_t [private] |
typedef std::map<rcstring, record::pointer> space_ethers_slurp::by_name_t [private] |
typedef boost::shared_ptr<space_ethers_slurp> space_ethers_slurp::pointer |
Reimplemented from space_ethers.
space_ethers_slurp::~space_ethers_slurp | ( | ) | [virtual] |
space_ethers_slurp::space_ethers_slurp | ( | const rcstring & | fn, |
const space_hosts_slurp::pointer & | hosts | ||
) | [protected] |
space_ethers_slurp::space_ethers_slurp | ( | ) | [private] |
The default constructor. Do not use.
space_ethers_slurp::space_ethers_slurp | ( | const space_ethers_slurp & | rhs | ) | [private] |
The copy constructor. Do not use.
space_ethers_slurp::pointer space_ethers_slurp::create | ( | const rcstring & | filename, |
const space_hosts_slurp::pointer & | hosts | ||
) | [static] |
space_ethers_slurp& space_ethers_slurp::operator= | ( | const space_ethers_slurp & | rhs | ) | [private] |
The assignment operator. Do not use.
void space_ethers_slurp::process | ( | const record::pointer & | rp | ) | [private] |
space_ethers::record::pointer space_ethers_slurp::query_by_address | ( | const rcstring & | address | ) | const |
The query_by_address method is used to obtain a record, given the MAC address. Not valid until after read_and_process has been called.
address | The address to search for. |
record::pointer space_ethers_slurp::query_by_ip_address | ( | const rcstring & | ip_address | ) | const |
The query_by_ip_address method is used to obtain a record, given the IP address. Not valid until after read_and_process has been called. Will not be fully populated if a NULL hosts pointer is given.
ip_address | The address to search for. |
space_ethers::record::pointer space_ethers_slurp::query_by_name | ( | const rcstring & | name | ) | const |
The query_by_name method is used to obtain a record, given the host name. Not valid until after read_and_process has been called.
name | The name to search for. |
void space_ethers_slurp::read_and_process | ( | void | ) |
by_addr_t space_ethers_slurp::by_addr [private] |
by_ip_addr_t space_ethers_slurp::by_ip_addr [private] |
by_name_t space_ethers_slurp::by_name [private] |