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

#include <netid.h>

Public Types

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

Public Member Functions

 ~record ()
const source_locationget_source_location (void) const
rcstring get_uid1 (void) const
rcstring get_domain (void) const
rcstring get_uid2 (void) const
const gids_tget_gids (void) const
bool is_host_kind (void) const
rcstring name (void) const
rcstring representation (void) const
void append (const rcstring &gid)

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &uid1, const rcstring &domain, const rcstring &uid2, const gids_t &gids)

Private Member Functions

 record (const source_location &locn, const rcstring &uid1, const rcstring &domain, const rcstring &uid2, const gids_t &gids)
 record ()
 record (const record &rhs)
recordoperator= (const record &rhs)

Private Attributes

source_location locn
rcstring uid1
rcstring domain
rcstring uid2
gids_t gids

Detailed Description

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

Definition at line 56 of file netid.h.


Member Typedef Documentation

typedef std::vector<rcstring> space_netid::record::gids_t

Definition at line 66 of file netid.h.

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

Definition at line 59 of file netid.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 315 of file netid.cc.

space_netid::record::record ( const source_location locn,
const rcstring uid1,
const rcstring domain,
const rcstring uid2,
const gids_t gids 
) [private]

The constructor.

Definition at line 320 of file netid.cc.

The default constructor. Do not use.

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

The copy constructor. Do not use.


Member Function Documentation

void space_netid::record::append ( const rcstring gid)

The append method is used to append another gid to the record's gids.

Definition at line 388 of file netid.cc.

space_netid::record::pointer space_netid::record::create ( const source_location locn,
const rcstring uid1,
const rcstring domain,
const rcstring uid2,
const gids_t gids 
) [static]

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

Definition at line 337 of file netid.cc.

rcstring space_netid::record::get_domain ( void  ) const [inline]

Definition at line 77 of file netid.h.

const gids_t& space_netid::record::get_gids ( void  ) const [inline]

Definition at line 79 of file netid.h.

Definition at line 75 of file netid.h.

rcstring space_netid::record::get_uid1 ( void  ) const [inline]

Definition at line 76 of file netid.h.

rcstring space_netid::record::get_uid2 ( void  ) const [inline]

Definition at line 78 of file netid.h.

bool space_netid::record::is_host_kind ( void  ) const

Definition at line 379 of file netid.cc.

The name method is used to extract the name of the record.

Definition at line 346 of file netid.cc.

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

The assignment operator. Do not use.

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 357 of file netid.cc.


Field Documentation

Definition at line 111 of file netid.h.

Definition at line 113 of file netid.h.

Definition at line 109 of file netid.h.

Definition at line 110 of file netid.h.

Definition at line 112 of file netid.h.


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