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

#include <normal.h>

Inheritance diagram for space_auto_master_row_normal:
space_auto_master_row

Public Types

typedef boost::shared_ptr
< space_auto_master_row_normal
pointer

Public Member Functions

virtual ~space_auto_master_row_normal ()

Static Public Member Functions

static pointer create (const mount_point &key, const rcstring &map_name, 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)
rcstring get_filename (void) const
bool has_associated_file (void) const

Private Member Functions

 space_auto_master_row_normal (const mount_point &key, const rcstring &filename, const rcstring &options)
 space_auto_master_row_normal ()
 space_auto_master_row_normal (const space_auto_master_row_normal &rhs)
space_auto_master_row_normaloperator= (const space_auto_master_row_normal &rhs)

Private Attributes

rcstring maptype
rcstring mapname
space_automap::pointer map

Detailed Description

The space_auto_master_row_normal class is used to represent a normal auto_mount row, which nominates a map name as the second argument.

Definition at line 29 of file normal.h.


Member Typedef Documentation

Reimplemented from space_auto_master_row.

Definition at line 33 of file normal.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 24 of file normal.cc.

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

The default 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.)
filenameThe name of the file containing the map.
optionsany options associated with this row

Definition at line 29 of file normal.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

space_auto_master_row_normal::pointer space_auto_master_row_normal::create ( const mount_point key,
const rcstring map_name,
const rcstring options 
) [static]

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.)
map_nameThe name of the file containing the map.
optionsany options associated with this row

Definition at line 43 of file normal.cc.

rcstring space_auto_master_row_normal::get_filename ( void  ) const [protected, virtual]

The get_filename method is used to obtain the filename of the text file containing the map.

Note:
Do not call this method if has_associated_file returns false.

Reimplemented from space_auto_master_row.

Definition at line 97 of file normal.cc.

bool space_auto_master_row_normal::has_associated_file ( void  ) const [protected, virtual]

The has_associated_file method is used to determine whether or not a row has a map file associated with it.

Reimplemented from space_auto_master_row.

Definition at line 87 of file normal.cc.

void space_auto_master_row_normal::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 76 of file normal.cc.

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

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.
void space_auto_master_row_normal::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 55 of file normal.cc.


Field Documentation

The map instance variable is used to remember the the contents of the map this etc/auto.master row is asscoiated with. It is populated by the load_map method.

Definition at line 102 of file normal.h.

The mapname instance variable is used to remember the name of the file containing the map.

Definition at line 95 of file normal.h.

The maptype instance variable is used to remember the type of map this is. Only "yp" and "nisplus" have associated files.

Definition at line 89 of file normal.h.


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