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

#include <simple.h>

Inheritance diagram for space_automap_row_simple:
space_automap_row

Public Types

typedef boost::shared_ptr
< space_automap_row_simple
pointer
typedef std::list< rcstringlocations_t

Public Member Functions

virtual ~space_automap_row_simple ()

Static Public Member Functions

static pointer create (const mount_point &where, const rcstring &options, const locations_t &locations)

Protected Member Functions

void print (const output_pointer &op) const
space_automap_row::pointer repath (const mount_point &stem) const

Private Member Functions

 space_automap_row_simple (const mount_point &mount_point, const rcstring &options, const locations_t &locations)
 space_automap_row_simple ()
 space_automap_row_simple (const space_automap_row_simple &rhs)
space_automap_row_simpleoperator= (const space_automap_row_simple &rhs)

Private Attributes

locations_t locations

Detailed Description

The space_automap_row_simple class is used to represent a simple automap row where no sub-parts are given.

Definition at line 28 of file simple.h.


Member Typedef Documentation

Definition at line 39 of file simple.h.

Reimplemented from space_automap_row.

Definition at line 32 of file simple.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 23 of file simple.cc.

space_automap_row_simple::space_automap_row_simple ( const mount_point mount_point,
const rcstring options,
const locations_t locations 
) [private]

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

Parameters:
mount_pointWhere to mount the file system
optionsMount options to apply when mounting file system.
locationsMain and alternative NFS locations for sourcing the file system.

Definition at line 28 of file simple.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_automap_row_simple::pointer space_automap_row_simple::create ( const mount_point where,
const rcstring options,
const locations_t locations 
) [static]

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

Parameters:
whereWhere to mount the file system
optionsMount options to apply when mounting file system.
locationsMain and alternative NFS locations for sourcing the file system.

Definition at line 40 of file simple.cc.

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

The assignment operator. Do not use.

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

The print method may be used to print a representation of this object instance.

Parameters:
opThe file on which to print.

Implements space_automap_row.

Definition at line 57 of file simple.cc.

space_automap_row::pointer space_automap_row_simple::repath ( const mount_point stem) const [protected, virtual]

The repath method is used to add a directory prefix to the mount point.

Parameters:
stemThe directory root for the sub mounts.

Implements space_automap_row.

Definition at line 130 of file simple.cc.


Field Documentation

The locations instance variable is used to remember all of the NFS places you can go to locate a source of this NFS mount point.

Definition at line 82 of file simple.h.


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