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

#include <netmasks.h>

Public Types

typedef boost::shared_ptr< recordpointer

Public Member Functions

 ~record ()
rcstring representation (void) const
const source_locationget_source_location (void) const
rcstring get_number (void) const
unsigned long get_number_binary (void) const
rcstring get_mask (void) const
unsigned long get_mask_binary (void) const

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &number, const rcstring &mask)

Private Member Functions

 record (const source_location &locn, const rcstring &number, const rcstring &mask)
 record ()
 record (const record &rhs)
recordoperator= (const record &rhs)

Private Attributes

source_location locn
rcstring number
rcstring mask

Detailed Description

The record class is used to represent one record from the netmasks file. Values of this type are returned by the get method.

Definition at line 54 of file netmasks.h.


Member Typedef Documentation

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

Definition at line 57 of file netmasks.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 299 of file netmasks.cc.

space_netmasks::record::record ( const source_location locn,
const rcstring number,
const rcstring mask 
) [private]

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

Parameters:
locnThe source location of this record
numberThe network number of this record. Assumed to be a valid network address, in valid format.
maskThe mask number of this record. Assumed to be a valid network address, in valid format.

Definition at line 304 of file netmasks.cc.

The default constructor. Do not use.

space_netmasks::record::record ( const record rhs) [private]

The copy constructor. Do not use.


Member Function Documentation

space_netmasks::record::pointer space_netmasks::record::create ( const source_location locn,
const rcstring number,
const rcstring mask 
) [static]

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

Parameters:
locnThe source location of this record
numberThe network number of this record. Assumed to be a valid network address, in valid format.
maskThe mask number of this record. Assumed to be a valid network address, in valid format.

Definition at line 317 of file netmasks.cc.

rcstring space_netmasks::record::get_mask ( void  ) const [inline]

Definition at line 91 of file netmasks.h.

unsigned long space_netmasks::record::get_mask_binary ( void  ) const

Definition at line 333 of file netmasks.cc.

rcstring space_netmasks::record::get_number ( void  ) const [inline]

Definition at line 89 of file netmasks.h.

unsigned long space_netmasks::record::get_number_binary ( void  ) const

Definition at line 325 of file netmasks.cc.

Definition at line 88 of file netmasks.h.

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

The assignment operator. Do not use.

The representation method is used to generate a string which represents the netmasks entry, suitable for inserting into an netmasks file or netmasks map. (There is no newline on the end.)

Definition at line 341 of file netmasks.cc.


Field Documentation

Definition at line 111 of file netmasks.h.

Definition at line 113 of file netmasks.h.

Definition at line 112 of file netmasks.h.


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