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

#include <hosts.h>

Public Types

typedef boost::shared_ptr< recordpointer
typedef std::vector< rcstringnames_t

Public Member Functions

 ~record ()
rcstring representation () const
const source_locationget_source_location (void) const
rcstring get_ip_address (void) const
const names_tget_names (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

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &ip_address, const names_t &names)

Private Member Functions

 record (const source_location &locn, const rcstring &ip_address, const names_t &names)

Private Attributes

source_location locn
rcstring ip_address
names_t names
unsigned long ip_address_binary

Detailed Description

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

Definition at line 54 of file hosts.h.


Member Typedef Documentation

typedef std::vector<rcstring> space_hosts::record::names_t

Definition at line 61 of file hosts.h.

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

Definition at line 57 of file hosts.h.


Constructor & Destructor Documentation

Definition at line 246 of file hosts.cc.

space_hosts::record::record ( const source_location locn,
const rcstring ip_address,
const names_t names 
) [private]

Definition at line 251 of file hosts.cc.


Member Function Documentation

space_hosts::record::pointer space_hosts::record::create ( const source_location locn,
const rcstring ip_address,
const names_t names 
) [static]

Definition at line 268 of file hosts.cc.

rcstring space_hosts::record::get_ip_address ( void  ) const [inline]

Definition at line 75 of file hosts.h.

const names_t& space_hosts::record::get_names ( void  ) const [inline]

Definition at line 76 of file hosts.h.

Definition at line 74 of file hosts.h.

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

Definition at line 294 of file hosts.cc.

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

Definition at line 302 of file hosts.cc.

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

Definition at line 310 of file hosts.cc.

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

Definition at line 318 of file hosts.cc.

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

Definition at line 276 of file hosts.cc.


Field Documentation

Definition at line 88 of file hosts.h.

unsigned long space_hosts::record::ip_address_binary [private]

Definition at line 90 of file hosts.h.

Definition at line 87 of file hosts.h.

Definition at line 89 of file hosts.h.


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