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

#include <netgroup.h>

Public Types

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

Public Member Functions

 ~record ()
rcstring representation (void) const
const source_locationget_source_location (void) const
rcstring get_name (void) const
const members_tget_members (void) const

Static Public Member Functions

static pointer create (const source_location &locn, const rcstring &name, const members_t &members)

Private Member Functions

 record (const source_location &locn, const rcstring &name, const members_t &members)
 record ()
 record (const record &rhs)
recordoperator= (const record &rhs)

Private Attributes

source_location locn
rcstring name
members_t members

Detailed Description

The record class is used to remember a netgroup record.

Definition at line 149 of file netgroup.h.


Member Typedef Documentation

Definition at line 156 of file netgroup.h.

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

Definition at line 152 of file netgroup.h.


Constructor & Destructor Documentation

Definition at line 293 of file netgroup.cc.

space_netgroup::record::record ( const source_location locn,
const rcstring name,
const members_t members 
) [private]

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

Parameters:
locnwhere in the source code this record appears.
namethe name of the netgroup.
membersthe members of the netgroup.

Definition at line 298 of file netgroup.cc.

The default constructor. Do not use.

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

The copy constructor. Do not use.


Member Function Documentation

space_netgroup::record::pointer space_netgroup::record::create ( const source_location locn,
const rcstring name,
const members_t members 
) [static]

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

Parameters:
locnwhere in the source code this record appears.
namethe name of the netgroup.
membersthe members of the netgroup.

Definition at line 311 of file netgroup.cc.

const members_t& space_netgroup::record::get_members ( void  ) const [inline]

Definition at line 182 of file netgroup.h.

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

Definition at line 181 of file netgroup.h.

Definition at line 180 of file netgroup.h.

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

The assignment operator. Do not use.

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

Definition at line 319 of file netgroup.cc.


Field Documentation

The locn instance variable is used to remember where in the source code this record appears.

Definition at line 203 of file netgroup.h.

The members instance variable is used to remember the members of the netgroup.

Definition at line 215 of file netgroup.h.

The name instance variable is used to remember the name of the netgroup.

Definition at line 209 of file netgroup.h.


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