nis-util  1.0.D108
Public Types | Public Member Functions | Static Public Member Functions | Private Types | Private Member Functions | Private Attributes
space_services_slurp Class Reference

#include <slurp.h>

Inheritance diagram for space_services_slurp:
space_services space

Public Types

typedef boost::shared_ptr
< space_services_slurp
pointer

Public Member Functions

virtual ~space_services_slurp ()
void read_and_process (void)
record::pointer query_by_name (const rcstring &name)

Static Public Member Functions

static pointer create (const rcstring &filename, const space_protocols_slurp::pointer &protocols)

Private Types

typedef std::map< rcstring,
record::pointer
by_name_t
typedef std::map< rcstring,
record::pointer
by_number_t

Private Member Functions

 space_services_slurp (const rcstring &filename, const space_protocols_slurp::pointer &protocols)
void process (const record::pointer &rp)
 space_services_slurp ()
 space_services_slurp (const space_services_slurp &)
space_services_slurpoperator= (const space_services_slurp &)

Private Attributes

space_protocols_slurp::pointer protocols
by_name_t by_name
by_number_t by_number

Detailed Description

The space_services_slurp class is used to process the services file records, filing each away for later checks. This checks the file for inter-row validity.

Definition at line 30 of file slurp.h.


Member Typedef Documentation

Definition at line 86 of file slurp.h.

Definition at line 94 of file slurp.h.

Reimplemented from space_services.

Definition at line 34 of file slurp.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 23 of file slurp.cc.

space_services_slurp::space_services_slurp ( const rcstring filename,
const space_protocols_slurp::pointer protocols 
) [private]

The constructor.

Definition at line 28 of file slurp.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

The constructor.

Definition at line 39 of file slurp.cc.

space_services_slurp& space_services_slurp::operator= ( const space_services_slurp ) [private]

The assignment operator. Do not use.

void space_services_slurp::process ( const record::pointer rp) [private]

The process method use used to process each record.

Definition at line 47 of file slurp.cc.

The query_by_name method is used to lookup a service by name.

Parameters:
nameThe name to search for (including aliases)
Returns:
pointer to record, or NULL pointer if no record found.

The read_and_process method is used to read the file and process all of the records.

Definition at line 153 of file slurp.cc.


Field Documentation

The by_name instance variable is used to index services records by name.

Definition at line 92 of file slurp.h.

The by_number instance variable is used to index services records by number.

Definition at line 100 of file slurp.h.

The protocols instance variable points to the read-in protocols file for validating the protocol column against.

Definition at line 84 of file slurp.h.


The documentation for this class was generated from the following files: