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

#include <netmasks.h>

Inheritance diagram for space_netmasks:
space space_netmasks_slurp space_netmasks_slurp_check

Data Structures

class  record

Public Types

typedef boost::shared_ptr
< space_netmasks
pointer

Public Member Functions

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

Static Public Member Functions

static pointer create (const rcstring &filename)

Protected Member Functions

 space_netmasks (const rcstring &filename)

Private Member Functions

 space_netmasks ()
 space_netmasks (const space_netmasks &)
space_netmasksoperator= (const space_netmasks &)

Private Attributes

unsigned long last_number

Detailed Description

The space_networks class is used to represent the parse state of a netmasks file (see netmasks(5) for file format information).

Definition at line 30 of file netmasks.h.


Member Typedef Documentation

typedef boost::shared_ptr<space_netmasks> space_netmasks::pointer

Reimplemented in space_netmasks_slurp.

Definition at line 34 of file netmasks.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 28 of file netmasks.cc.

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

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

Parameters:
filenameThe name of the file to be read.

Definition at line 33 of file netmasks.cc.

The default constructor. Do not use.

The copy constructor. Do not use.


Member Function Documentation

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

Parameters:
filenameThe name of the file to be read.

Reimplemented in space_netmasks_slurp.

Definition at line 43 of file netmasks.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:
pointer to a newly allocated record, or NULL at end of file

Definition at line 50 of file netmasks.cc.

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

The assignment operator. Do not use.


Field Documentation

unsigned long space_netmasks::last_number [private]

The last_number instance variable is used by the get method to check record sequencing.

Definition at line 159 of file netmasks.h.


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