nis-util  1.0.D108
Public Member Functions | Private Member Functions | Private Attributes
mount_point Class Reference

#include <mount_point.h>

Public Member Functions

 ~mount_point ()
 mount_point (const rcstring &path, const source_location &locn)
 mount_point (const mount_point &rhs)
mount_pointoperator= (const mount_point &rhs)
rcstring get_mount_point (void) const
const source_locationget_source_location (void) const
mount_point operator+ (const mount_point &rhs) const
bool is_absolute (void) const

Private Member Functions

 mount_point ()

Private Attributes

rcstring path
source_location locn

Detailed Description

The mount_point class is used to represent a mount point parsed from a source file.

Definition at line 28 of file mount_point.h.


Constructor & Destructor Documentation

The destructor. It is not virtual, thou shalt not derive from this class.

Definition at line 24 of file mount_point.cc.

mount_point::mount_point ( const rcstring path,
const source_location locn 
)

The constructor.

Parameters:
pathThe position withing the file system to mount a file system
locnThe location of the mount point within the text of the source mount map.

Definition at line 29 of file mount_point.cc.

The copy constructor.

Parameters:
rhsThe right hand side of the initialization.

Definition at line 39 of file mount_point.cc.

mount_point::mount_point ( ) [private]

The default constructor. Do not use.


Member Function Documentation

rcstring mount_point::get_mount_point ( void  ) const [inline]

The get_mount_point method may be used to obtain the position withing the file system to mount a file system

Definition at line 68 of file mount_point.h.

const source_location& mount_point::get_source_location ( void  ) const [inline]

The get_source_location method may be used to obtain the location of the mount point within the text of the source mount map.

Definition at line 75 of file mount_point.h.

bool mount_point::is_absolute ( void  ) const

The is_absolute method is used to determine whether or not this mount point is relative (does not start with '/') or absolute (starts with '/').

Definition at line 68 of file mount_point.cc.

mount_point mount_point::operator+ ( const mount_point rhs) const

The addition operator may be used to glue two mount points together, as is sometimes required for complex automap rows.

Definition at line 59 of file mount_point.cc.

mount_point & mount_point::operator= ( const mount_point rhs)

The assignment operator.

Parameters:
rhsThe right hand side of the assignment.

Definition at line 47 of file mount_point.cc.


Field Documentation

The locn instance variable is used to remember the location of the mount point within the text of the source mount map.

Definition at line 101 of file mount_point.h.

The path instance variable is used to remember the position within the file system to mount a file system.

Definition at line 95 of file mount_point.h.


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