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

#include <ethers.h>

Public Types

typedef boost::shared_ptr< recordpointer

Public Member Functions

 ~record ()
rcstring representation (void) const
bool operator< (const record &rhs) const
bool operator<= (const record &rhs) const
bool operator> (const record &rhs) const
bool operator>= (const record &rhs) const
const source_locationget_source_location (void) const
rcstring get_mac_address (void) const
rcstring get_name (void) const
rcstring get_ip_address (void) const

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &mac_address, const rcstring &name, const rcstring &ip_address)

Private Member Functions

 record (const source_location &locn, const rcstring &mac_address, const rcstring &name, const rcstring &ip_address)
int compare (const record &rhs) const

Private Attributes

source_location locn
rcstring mac_address
rcstring name
ether_addr mac_address_binary
rcstring ip_address

Detailed Description

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

Definition at line 66 of file ethers.h.


Member Typedef Documentation

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

Definition at line 69 of file ethers.h.


Constructor & Destructor Documentation

Definition at line 179 of file ethers.cc.

space_ethers::record::record ( const source_location locn,
const rcstring mac_address,
const rcstring name,
const rcstring ip_address 
) [private]

Definition at line 184 of file ethers.cc.


Member Function Documentation

int space_ethers::record::compare ( const record rhs) const [private]

Definition at line 235 of file ethers.cc.

space_ethers::record::pointer space_ethers::record::create ( const source_location locn,
const rcstring mac_address,
const rcstring name,
const rcstring ip_address 
) [static]

Definition at line 204 of file ethers.cc.

Definition at line 93 of file ethers.h.

Definition at line 91 of file ethers.h.

rcstring space_ethers::record::get_name ( void  ) const [inline]

Definition at line 92 of file ethers.h.

Definition at line 90 of file ethers.h.

bool space_ethers::record::operator< ( const record rhs) const

Definition at line 265 of file ethers.cc.

bool space_ethers::record::operator<= ( const record rhs) const

Definition at line 273 of file ethers.cc.

bool space_ethers::record::operator> ( const record rhs) const

Definition at line 249 of file ethers.cc.

bool space_ethers::record::operator>= ( const record rhs) const

Definition at line 257 of file ethers.cc.

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

Definition at line 223 of file ethers.cc.


Field Documentation

Definition at line 107 of file ethers.h.

Definition at line 99 of file ethers.h.

Definition at line 101 of file ethers.h.

Definition at line 105 of file ethers.h.

Definition at line 103 of file ethers.h.


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