nis-util  1.0.D108
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions
space_auto_master_row_hosts Class Reference

#include <hosts.h>

Inheritance diagram for space_auto_master_row_hosts:
space_auto_master_row

Public Types

typedef boost::shared_ptr
< space_auto_master_row_hosts
pointer

Public Member Functions

virtual ~space_auto_master_row_hosts ()

Static Public Member Functions

static pointer create (const mount_point &key, const rcstring &options)

Protected Member Functions

void print (const output_pointer &op) const
void load_map (const rcstring &filename, const space_hosts_slurp::pointer &hosts)

Private Member Functions

 space_auto_master_row_hosts (const mount_point &key, const rcstring &options)
 space_auto_master_row_hosts ()
 space_auto_master_row_hosts (const space_auto_master_row_hosts &rhs)
space_auto_master_row_hostsoperator= (const space_auto_master_row_hosts &rhs)

Detailed Description

The space_auto_master_row_hosts class is used to represent a host map mount in an etc/auto.master file.

Definition at line 28 of file hosts.h.


Member Typedef Documentation

Reimplemented from space_auto_master_row.

Definition at line 32 of file hosts.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 23 of file hosts.cc.

space_auto_master_row_hosts::space_auto_master_row_hosts ( const mount_point key,
const rcstring options 
) [private]

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

Parameters:
keywhere to mount this map in the file system (It is also the database key for this row of the NIS map.)
optionsany options associated with this row

Definition at line 28 of file hosts.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

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

Parameters:
keywhere to mount this map in the file system (It is also the database key for this row of the NIS map.)
optionsany options associated with this row

Definition at line 38 of file hosts.cc.

void space_auto_master_row_hosts::load_map ( const rcstring filename,
const space_hosts_slurp::pointer hosts 
) [protected, virtual]

The load_map method is used to load the map corresponding to this row of the table.

Parameters:
filenameThe name of the file to read from.
hostsIf non-NULL, the hosts map to validate against.

Implements space_auto_master_row.

Definition at line 61 of file hosts.cc.

space_auto_master_row_hosts& space_auto_master_row_hosts::operator= ( const space_auto_master_row_hosts rhs) [private]

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.
void space_auto_master_row_hosts::print ( const output_pointer op) const [protected, virtual]

The print method is used to print a representation of the etc/auto.master row on the given output stream.

Implements space_auto_master_row.

Definition at line 46 of file hosts.cc.


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