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 Class Reference

#include <row.h>

Inheritance diagram for space_automap_row:
space_automap_row_compound space_automap_row_simple

Public Types

typedef boost::shared_ptr
< space_automap_row
pointer
typedef boost::shared_ptr< outputoutput_pointer

Public Member Functions

virtual ~space_automap_row ()
virtual void print (const output_pointer &op) const =0
const mount_pointget_mount_point (void) const
rcstring get_options (void) const
virtual void space_automap_insert_sub (space_automap *sap) const
virtual pointer repath (const mount_point &stem) const =0

Static Public Member Functions

static void option_verify (const rcstring &name, const rcstring &value, space *context)
static void options_verify (const rcstring &text, space *context)

Protected Member Functions

 space_automap_row (const mount_point &key, const rcstring &options)

Private Member Functions

 space_automap_row ()
 space_automap_row (const space_automap_row &rhs)
space_automap_rowoperator= (const space_automap_row &rhs)

Private Attributes

mount_point key
rcstring options

Detailed Description

The space_automap_row class is used to represent a single row of an automap table. This is an abstract inferface, because the row may be simple (the commonest case) or complex (see on SunOS and Solaris systems).

Definition at line 38 of file row.h.


Member Typedef Documentation

typedef boost::shared_ptr<output> space_automap_row::output_pointer

Definition at line 42 of file row.h.

typedef boost::shared_ptr<space_automap_row> space_automap_row::pointer

Reimplemented in space_automap_row_compound, and space_automap_row_simple.

Definition at line 41 of file row.h.


Constructor & Destructor Documentation

The destructor.

Definition at line 28 of file row.cc.

space_automap_row::space_automap_row ( const mount_point key,
const rcstring options 
) [protected]

The constructor. For use by derived classes only.

Parameters:
keyWhere in the file system to mount this NFS server.
optionsThe mount options, if any.

Definition at line 33 of file row.cc.

The default constructor. Do not use.

The copy constructor. Do not use.

Parameters:
rhsThe right hand side of the initialization.

Member Function Documentation

const mount_point& space_automap_row::get_mount_point ( void  ) const [inline]

The get_mount_point method is used to obtain the mount point for this row, where in the file system to mount this NFS server.

Definition at line 62 of file row.h.

rcstring space_automap_row::get_options ( void  ) const [inline]

The get_options method is used to obtain the mount options, if any.

Definition at line 68 of file row.h.

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

The assignment operator. Do not use.

Parameters:
rhsThe right hand side of the assignment.
void space_automap_row::option_verify ( const rcstring name,
const rcstring value,
space context 
) [static]

The option_verify method is used to verify that the named option is known and valid.

Definition at line 57 of file row.cc.

void space_automap_row::options_verify ( const rcstring text,
space context 
) [static]

The options_verify class method is used to verify that an options list contains only known and valid options.

Definition at line 198 of file row.cc.

virtual void space_automap_row::print ( const output_pointer op) const [pure virtual]

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

Parameters:
opThe file on which to print.

Implemented in space_automap_row_simple, and space_automap_row_compound.

virtual pointer space_automap_row::repath ( const mount_point stem) const [pure virtual]

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

Parameters:
stemThe directory root for the sub mounts.

Implemented in space_automap_row_simple, and space_automap_row_compound.

The space_automap_insert_sub is used to call amp->insert_sub for each row and subrow.

Reimplemented in space_automap_row_compound.

Definition at line 251 of file row.cc.


Field Documentation

The key instance variable is used to remember where in the file system to mount this NFS server. (It is also the database key for this row of the NIS map.)

Definition at line 116 of file row.h.

The options instance variable is used to remember the mount options, if any.

Definition at line 122 of file row.h.


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