nis-util
1.0.D108
|
#include <slurp.h>
Public Types | |
typedef boost::shared_ptr < space_hosts_slurp > | pointer |
Public Member Functions | |
virtual | ~space_hosts_slurp () |
void | read_and_process (void) |
record::pointer | query_by_name (const rcstring &name) const |
record::pointer | query_by_address (const rcstring &address) const |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
Private Types | |
typedef std::map< rcstring, record::pointer > | by_name_t |
typedef std::map< rcstring, record::pointer > | by_addr_t |
Private Member Functions | |
space_hosts_slurp (const rcstring &filename) | |
space_hosts_slurp () | |
space_hosts_slurp (const space_hosts_slurp &) | |
space_hosts_slurp & | operator= (const space_hosts_slurp &) |
Private Attributes | |
by_name_t | by_name |
by_addr_t | by_addr |
The space_hosts_slurp class is used to represent the parse state, and the results of the file scan after parsing.
typedef std::map<rcstring, record::pointer> space_hosts_slurp::by_addr_t [private] |
typedef std::map<rcstring, record::pointer> space_hosts_slurp::by_name_t [private] |
typedef boost::shared_ptr<space_hosts_slurp> space_hosts_slurp::pointer |
Reimplemented from space_hosts.
space_hosts_slurp::~space_hosts_slurp | ( | ) | [virtual] |
space_hosts_slurp::space_hosts_slurp | ( | const rcstring & | filename | ) | [private] |
space_hosts_slurp::space_hosts_slurp | ( | ) | [private] |
The default constructor.
space_hosts_slurp::space_hosts_slurp | ( | const space_hosts_slurp & | ) | [private] |
The copy constructor.
space_hosts_slurp::pointer space_hosts_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 space_hosts.
space_hosts_slurp& space_hosts_slurp::operator= | ( | const space_hosts_slurp & | ) | [private] |
The assignment operator.
space_hosts::record::pointer space_hosts_slurp::query_by_address | ( | const rcstring & | address | ) | const |
space_hosts::record::pointer space_hosts_slurp::query_by_name | ( | const rcstring & | name | ) | const |
void space_hosts_slurp::read_and_process | ( | void | ) |
by_addr_t space_hosts_slurp::by_addr [private] |
by_name_t space_hosts_slurp::by_name [private] |