nis-util
1.0.D108
|
#include <slurp.h>
Public Types | |
typedef boost::shared_ptr < space_protocols_slurp > | pointer |
Public Member Functions | |
virtual | ~space_protocols_slurp () |
void | read_and_process (void) |
record::pointer | query_by_name (const rcstring &name_or_alias) const |
record::pointer | query_by_number (int number) const |
record::pointer | query_by_number (const rcstring &number) 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< int, record::pointer > | by_number_t |
Private Member Functions | |
space_protocols_slurp (const rcstring &filename) | |
void | process (const record::pointer &rp) |
space_protocols_slurp () | |
space_protocols_slurp (const space_protocols_slurp &) | |
space_protocols_slurp & | operator= (const space_protocols_slurp &) |
Private Attributes | |
by_name_t | by_name |
by_number_t | by_number |
The space_protocols_slurp class is used to process the protocols file records, filing each away for later checks. This checks the file for inter-row validity.
typedef std::map<rcstring, record::pointer> space_protocols_slurp::by_name_t [private] |
typedef std::map<int, record::pointer> space_protocols_slurp::by_number_t [private] |
typedef boost::shared_ptr<space_protocols_slurp> space_protocols_slurp::pointer |
Reimplemented from space_protocols.
space_protocols_slurp::~space_protocols_slurp | ( | ) | [virtual] |
space_protocols_slurp::space_protocols_slurp | ( | const rcstring & | filename | ) | [private] |
space_protocols_slurp::space_protocols_slurp | ( | ) | [private] |
The default constructor. Do not use.
space_protocols_slurp::space_protocols_slurp | ( | const space_protocols_slurp & | ) | [private] |
The copy constructor. Do not use.
space_protocols_slurp::pointer space_protocols_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_protocols.
space_protocols_slurp& space_protocols_slurp::operator= | ( | const space_protocols_slurp & | ) | [private] |
The assignment operator. Do not use.
void space_protocols_slurp::process | ( | const record::pointer & | rp | ) | [private] |
space_protocols::record::pointer space_protocols_slurp::query_by_name | ( | const rcstring & | name_or_alias | ) | const |
space_protocols::record::pointer space_protocols_slurp::query_by_number | ( | int | number | ) | const |
space_protocols::record::pointer space_protocols_slurp::query_by_number | ( | const rcstring & | number | ) | const |
void space_protocols_slurp::read_and_process | ( | void | ) |
by_name_t space_protocols_slurp::by_name [private] |
by_number_t space_protocols_slurp::by_number [private] |