nis-util  1.0.D108
Data Structures | Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
space_netid Class Reference

#include <netid.h>

Inheritance diagram for space_netid:
space space_netid_slurp

Data Structures

class  record

Public Types

typedef boost::shared_ptr
< space_netid

Public Member Functions

virtual ~space_netid ()
record::pointer get (void)

Static Public Member Functions

static pointer create (const rcstring &filename)

Protected Member Functions

 space_netid (const rcstring &filename)

Private Member Functions

 space_netid ()
 space_netid (const space_netid &)
space_netidoperator= (const space_netid &)

Private Attributes

int last_uid

Detailed Description

The space_netid class is used to represent the parse state of a netid file. I'd tell you to see netid(5) for file format information, but there's no such beast. I gleaned this much from the ypserve-2.1 package's mknetid.c file.

Definition at line 32 of file netid.h.

Member Typedef Documentation

typedef boost::shared_ptr<space_netid> space_netid::pointer

Reimplemented in space_netid_slurp.

Definition at line 36 of file netid.h.

Constructor & Destructor Documentation

The destructor.

Definition at line 25 of file

space_netid::space_netid ( const rcstring filename) [protected]

The constructor. It is private on purpose, use the create class method instead.

filenamethe name of the file to be read

Definition at line 30 of file

space_netid::space_netid ( ) [private]

The default constructor. Do not use.

space_netid::space_netid ( const space_netid ) [private]

The copy constructor. Do not use.

Member Function Documentation

space_netid::pointer space_netid::create ( const rcstring filename) [static]

The create class method is used to create new dynamically allocated instances of this class.

filenamethe name of the file to be read

Definition at line 40 of file

The get method is used to get another record from the file. It returns false at end-of-file.

Input lines are validated for simple correctness. Invalid lines cause fatal errors (see the error method) and are not passed through.

pointer to new record, or NULL at end of file

Definition at line 47 of file

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

The assignment operator. Do not use.

Field Documentation

int space_netid::last_uid [private]

Definition at line 155 of file netid.h.

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