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_ethers Class Reference

#include <ethers.h>

Inheritance diagram for space_ethers:
space space_ethers_slurp

Data Structures

class  record

Public Types

typedef boost::shared_ptr
< space_ethers
pointer

Public Member Functions

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

Static Public Member Functions

static pointer create (const rcstring &filename)

Protected Member Functions

 space_ethers (const rcstring &filename)

Private Member Functions

 space_ethers ()
 space_ethers (const space_ethers &)
space_ethersoperator= (const space_ethers &)

Private Attributes

record::pointer last_rp

Detailed Description

The space_ethers class is used to represent the parse state of an ethers file (see ethers(5) for file format information).

Definition at line 31 of file ethers.h.


Member Typedef Documentation

typedef boost::shared_ptr<space_ethers> space_ethers::pointer

Reimplemented in space_ethers_slurp.

Definition at line 35 of file ethers.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 25 of file ethers.cc.

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

The constructor. It is private on purpose, use the create clas smethod instead.

Parameters:
filenameThe name of the file to be read.

Definition at line 32 of file ethers.cc.

The default constructor. Do not use.

space_ethers::space_ethers ( const space_ethers ) [private]

The copy constructor. Do not use.


Member Function Documentation

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

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

Parameters:
filenameThe name of the file to be read.

Definition at line 41 of file ethers.cc.

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.

Returns:
a pointer to the new record on success, or NULL pointer at end of file

Definition at line 48 of file ethers.cc.

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

The assignment operator. Do not use.


Field Documentation

Used to validate record ordering.

Definition at line 130 of file ethers.h.


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