nis-util
1.0.D108
|
#include <slurp.h>
Public Types | |
typedef boost::shared_ptr < space_netmasks_slurp > | pointer |
Public Member Functions | |
virtual | ~space_netmasks_slurp () |
virtual void | read_and_process (void) |
record::pointer | query_by_address (const rcstring &key) const |
Static Public Member Functions | |
static pointer | create (const rcstring &filename) |
Protected Member Functions | |
virtual void | process (const record::pointer &rp) |
space_netmasks_slurp (const rcstring &filename) | |
Private Types | |
typedef std::map< rcstring, record::pointer > | by_addr_t |
Private Member Functions | |
space_netmasks_slurp () | |
space_netmasks_slurp (const space_netmasks_slurp &) | |
space_netmasks_slurp & | operator= (const space_netmasks_slurp &) |
Private Attributes | |
by_addr_t | by_addr |
The space_netmasks_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_netmasks_slurp::by_addr_t [private] |
typedef boost::shared_ptr<space_netmasks_slurp> space_netmasks_slurp::pointer |
Reimplemented from space_netmasks.
space_netmasks_slurp::~space_netmasks_slurp | ( | ) | [virtual] |
space_netmasks_slurp::space_netmasks_slurp | ( | const rcstring & | filename | ) | [protected] |
space_netmasks_slurp::space_netmasks_slurp | ( | ) | [private] |
The default constructor. Do not use.
space_netmasks_slurp::space_netmasks_slurp | ( | const space_netmasks_slurp & | ) | [private] |
The copy constructor. Do not use.
space_netmasks_slurp::pointer space_netmasks_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_netmasks.
space_netmasks_slurp& space_netmasks_slurp::operator= | ( | const space_netmasks_slurp & | ) | [private] |
The assignment operator. Do not use.
void space_netmasks_slurp::process | ( | const record::pointer & | rp | ) | [protected, virtual] |
The process method is called by the read_and_process method to process each record in the file.
rp | The row to be processed. |
Reimplemented in space_netmasks_slurp_check.
space_netmasks::record::pointer space_netmasks_slurp::query_by_address | ( | const rcstring & | key | ) | const |
void space_netmasks_slurp::read_and_process | ( | void | ) | [virtual] |
by_addr_t space_netmasks_slurp::by_addr [private] |